INSTANCE - The type of instance that the InputStreamObjectReader
producespublic static class VFSListDataset.FileObjectISReader<INSTANCE> extends Object implements ObjectReader<INSTANCE,org.apache.commons.vfs2.FileObject>
InputStreamObjectReaders be used as a
ObjectReader with a FileObject source type.| Constructor and Description |
|---|
FileObjectISReader(InputStreamObjectReader<INSTANCE> reader)
Construct with the given
InputStreamObjectReader |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canRead(org.apache.commons.vfs2.FileObject source,
String name)
Returns true if the stream can be read, or false otherwise.
|
INSTANCE |
read(org.apache.commons.vfs2.FileObject source)
Read an object from the source
|
public FileObjectISReader(InputStreamObjectReader<INSTANCE> reader)
InputStreamObjectReaderreader - the InputStreamObjectReaderpublic INSTANCE read(org.apache.commons.vfs2.FileObject source) throws IOException
ObjectReaderread in interface ObjectReader<INSTANCE,org.apache.commons.vfs2.FileObject>source - the sourceIOException - if an error occurspublic boolean canRead(org.apache.commons.vfs2.FileObject source, String name)
ObjectReader
This method is not normally called directly; rather,
IOUtils.canRead(ObjectReader, Object, String) should be used
instead.
canRead in interface ObjectReader<INSTANCE,org.apache.commons.vfs2.FileObject>source - the data sourcename - the name of the file behind the stream (can be null).ObjectReader can read the stream; false
otherwise.IOUtils.canRead(ObjectReader, Object, String)