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 |
|---|
VFSListDataset.FileObjectISReader(InputStreamObjectReader<INSTANCE> reader)
Construct with the given
InputStreamObjectReader |
public VFSListDataset.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)