public class WrapSeekable<S extends InputStream & org.apache.hadoop.fs.Seekable>
extends htsjdk.samtools.seekablestream.SeekableStream
This is necessary because Hadoop and the SAM tools each have their own "seekable stream" abstraction.
| Constructor and Description |
|---|
WrapSeekable(S s,
long length,
org.apache.hadoop.fs.Path p) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
boolean |
eof() |
String |
getSource() |
long |
length() |
static WrapSeekable<org.apache.hadoop.fs.FSDataInputStream> |
openPath(org.apache.hadoop.conf.Configuration conf,
org.apache.hadoop.fs.Path path) |
static WrapSeekable<org.apache.hadoop.fs.FSDataInputStream> |
openPath(org.apache.hadoop.fs.FileSystem fs,
org.apache.hadoop.fs.Path p)
A helper for the common use case.
|
long |
position() |
int |
read() |
int |
read(byte[] buf,
int offset,
int len) |
void |
seek(long pos) |
available, mark, markSupported, read, reset, skippublic WrapSeekable(S s, long length, org.apache.hadoop.fs.Path p)
public static WrapSeekable<org.apache.hadoop.fs.FSDataInputStream> openPath(org.apache.hadoop.fs.FileSystem fs, org.apache.hadoop.fs.Path p) throws IOException
IOExceptionpublic static WrapSeekable<org.apache.hadoop.fs.FSDataInputStream> openPath(org.apache.hadoop.conf.Configuration conf, org.apache.hadoop.fs.Path path) throws IOException
IOExceptionpublic String getSource()
getSource in class htsjdk.samtools.seekablestream.SeekableStreampublic long length()
length in class htsjdk.samtools.seekablestream.SeekableStreampublic long position()
throws IOException
position in class htsjdk.samtools.seekablestream.SeekableStreamIOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class htsjdk.samtools.seekablestream.SeekableStreamIOExceptionpublic boolean eof()
throws IOException
eof in class htsjdk.samtools.seekablestream.SeekableStreamIOExceptionpublic void seek(long pos)
throws IOException
seek in class htsjdk.samtools.seekablestream.SeekableStreamIOExceptionpublic int read()
throws IOException
read in class InputStreamIOExceptionpublic int read(byte[] buf,
int offset,
int len)
throws IOException
read in class htsjdk.samtools.seekablestream.SeekableStreamIOExceptionCopyright © 2016. All rights reserved.