Class GeneralURIStreamFactory
java.lang.Object
org.archive.util.GeneralURIStreamFactory
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic SeekableLineReaderFactorycreateSeekableStreamFactory(String uri, boolean useNio) static SeekableLineReaderFactorycreateSeekableStreamFactory(String uri, int blockSize, boolean useNio) static StreamcreateStream(String uri) static StreamcreateStream(String uri, long offset) protected static org.apache.hadoop.fs.FileSysteminitHdfs()static booleanstatic booleanstatic boolean
-
Method Details
-
initHdfs
- Throws:
IOException
-
isHdfs
-
isHttp
-
isFileURI
-
createStream
- Throws:
IOException
-
createStream
- Throws:
IOException
-
createSeekableStreamFactory
public static SeekableLineReaderFactory createSeekableStreamFactory(String uri, boolean useNio) throws IOException - Throws:
IOException
-
createSeekableStreamFactory
public static SeekableLineReaderFactory createSeekableStreamFactory(String uri, int blockSize, boolean useNio) throws IOException - Throws:
IOException
-