public class GeneralFileDataSource extends DataSource
DEFAULT_INTRO_LIMIT, MARK_WORKAROUND_PROPERTY| Constructor and Description |
|---|
GeneralFileDataSource(edu.sdsc.grid.io.GeneralFile gf)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getName()
Returns a name for this source.
|
InputStream |
getRawInputStream()
Provides a new InputStream for this data source.
|
close, forceCompression, getCompression, getHybridInputStream, getInputStream, getInputStream, getIntro, getIntroLimit, getLength, getMarkWorkaround, getPosition, getRawLength, getSystemId, getURL, makeDataSource, makeDataSource, makeDataSource, setCompression, setIntroLimit, setMarkWorkaround, setName, setPosition, toStringpublic GeneralFileDataSource(edu.sdsc.grid.io.GeneralFile gf)
gf - general file object on which this DataSource is based.public String getName()
DataSourceDataSource.getURL() method
(or some suitable class-specific method) should be used.
If this source has a position, it should probably form part of
this name.getName in class DataSourcepublic InputStream getRawInputStream() throws IOException
DataSourcegetRawInputStream in class DataSourceIOExceptionCopyright © 2025 Central Laboratory of the Research Councils. All Rights Reserved.