Class ReaderWriterFileDataSource
- java.lang.Object
-
- com.vividsolutions.jump.io.datasource.DataSource
-
- com.vividsolutions.jump.io.datasource.ReaderWriterFileDataSource
-
- Direct Known Subclasses:
StandardReaderWriterFileDataSource
public class ReaderWriterFileDataSource extends DataSource
Adapts the old JUMP I/O API (Readers and Writers) to the new JUMP I/O API (DataSources).
-
-
Field Summary
Fields Modifier and Type Field Description protected String[]extensionsprotected JUMPReaderreaderprotected JUMPWriterwriter-
Fields inherited from class com.vividsolutions.jump.io.datasource.DataSource
CHARSET_KEY, COMPRESSED_KEY, COORDINATE_SYSTEM_CODE, COORDINATE_SYSTEM_KEY, COORDINATE_SYSTEM_REGISTRY, FILE_KEY, URI_KEY
-
-
Constructor Summary
Constructors Constructor Description ReaderWriterFileDataSource(JUMPReader reader, JUMPWriter writer)Deprecated.ReaderWriterFileDataSource(JUMPReader reader, JUMPWriter writer, String[] extensions)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected static StringcreateDescriptiveName(URI uri)return 'file.ext (archive.ext)' for archive members and 'file.ext' for all othersConnectiongetConnection()Creates a new Connection to this DataSource.protected DriverPropertiesgetDriverProperties()String[]getExtensions()protected DriverPropertiesgetReaderDriverProperties()protected DriverPropertiesgetWriterDriverProperties()booleanisReadable()booleanisWritable()-
Methods inherited from class com.vividsolutions.jump.io.datasource.DataSource
getProperties, installCoordinateSystem, isDisabled, setDisabled, setProperties
-
-
-
-
Field Detail
-
reader
protected JUMPReader reader
-
writer
protected JUMPWriter writer
-
extensions
protected String[] extensions
-
-
Constructor Detail
-
ReaderWriterFileDataSource
@Deprecated public ReaderWriterFileDataSource(JUMPReader reader, JUMPWriter writer)
Deprecated.
-
ReaderWriterFileDataSource
public ReaderWriterFileDataSource(JUMPReader reader, JUMPWriter writer, String[] extensions)
-
-
Method Detail
-
getConnection
public Connection getConnection()
Description copied from class:DataSourceCreates a new Connection to this DataSource.- Specified by:
getConnectionin classDataSource- Returns:
- a Connection to connect to this DataSource
-
createDescriptiveName
protected static String createDescriptiveName(URI uri)
return 'file.ext (archive.ext)' for archive members and 'file.ext' for all others
-
getReaderDriverProperties
protected DriverProperties getReaderDriverProperties()
-
getWriterDriverProperties
protected DriverProperties getWriterDriverProperties()
-
getDriverProperties
protected DriverProperties getDriverProperties()
-
isReadable
public boolean isReadable()
- Overrides:
isReadablein classDataSource
-
isWritable
public boolean isWritable()
- Overrides:
isWritablein classDataSource
-
getExtensions
public String[] getExtensions()
-
-