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[]
extensions
protected JUMPReader
reader
protected JUMPWriter
writer
-
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 String
createDescriptiveName(URI uri)
return 'file.ext (archive.ext)' for archive members and 'file.ext' for all othersConnection
getConnection()
Creates a new Connection to this DataSource.protected DriverProperties
getDriverProperties()
String[]
getExtensions()
protected DriverProperties
getReaderDriverProperties()
protected DriverProperties
getWriterDriverProperties()
boolean
isReadable()
boolean
isWritable()
-
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:DataSource
Creates a new Connection to this DataSource.- Specified by:
getConnection
in 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:
isReadable
in classDataSource
-
isWritable
public boolean isWritable()
- Overrides:
isWritable
in classDataSource
-
getExtensions
public String[] getExtensions()
-
-