public class GeneralURIStreamFactory extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
GeneralURIStreamFactory.HDFSDefaultUri |
| Modifier and Type | Method and Description |
|---|---|
static SeekableLineReaderFactory |
createSeekableStreamFactory(String uri,
boolean useNio) |
static SeekableLineReaderFactory |
createSeekableStreamFactory(String uri,
int blockSize,
boolean useNio) |
static Stream |
createStream(String uri) |
static Stream |
createStream(String uri,
long offset) |
protected static org.apache.hadoop.fs.FileSystem |
initHdfs() |
static boolean |
isFileURI(String uri) |
static boolean |
isHdfs(String uri) |
static boolean |
isHttp(String uri) |
protected static org.apache.hadoop.fs.FileSystem initHdfs()
throws IOException
IOExceptionpublic static boolean isHdfs(String uri)
public static boolean isHttp(String uri)
public static boolean isFileURI(String uri)
public static Stream createStream(String uri) throws IOException
IOExceptionpublic static Stream createStream(String uri, long offset) throws IOException
IOExceptionpublic static SeekableLineReaderFactory createSeekableStreamFactory(String uri, boolean useNio) throws IOException
IOExceptionpublic static SeekableLineReaderFactory createSeekableStreamFactory(String uri, int blockSize, boolean useNio) throws IOException
IOExceptionCopyright © 2015 The International Internet Preservation Consortium. All Rights Reserved.