Package org.broad.tribble.util
Class SeekableFileStream
- java.lang.Object
-
- java.io.InputStream
-
- org.broad.tribble.util.SeekableStream
-
- org.broad.tribble.util.SeekableFileStream
-
- All Implemented Interfaces:
java.io.Closeable,java.lang.AutoCloseable
public class SeekableFileStream extends SeekableStream
- Author:
- jrobinso
-
-
Constructor Summary
Constructors Constructor Description SeekableFileStream(java.io.File file)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intavailable()voidclose()booleaneof()longlength()voidmark(int readlimit)booleanmarkSupported()longposition()intread()intread(byte[] b)intread(byte[] buffer, int offset, int length)voidreset()voidseek(long position)longskip(long n)-
Methods inherited from class org.broad.tribble.util.SeekableStream
readFully
-
-
-
-
Method Detail
-
eof
public boolean eof() throws java.io.IOException- Specified by:
eofin classSeekableStream- Throws:
java.io.IOException
-
length
public long length()
- Specified by:
lengthin classSeekableStream
-
seek
public void seek(long position) throws java.io.IOException- Specified by:
seekin classSeekableStream- Throws:
java.io.IOException
-
position
public long position() throws java.io.IOException- Specified by:
positionin classSeekableStream- Throws:
java.io.IOException
-
skip
public long skip(long n) throws java.io.IOException- Overrides:
skipin classjava.io.InputStream- Throws:
java.io.IOException
-
read
public int read(byte[] buffer, int offset, int length) throws java.io.IOException- Overrides:
readin classjava.io.InputStream- Throws:
java.io.IOException
-
read
public int read() throws java.io.IOException- Specified by:
readin classjava.io.InputStream- Throws:
java.io.IOException
-
read
public int read(byte[] b) throws java.io.IOException- Overrides:
readin classjava.io.InputStream- Throws:
java.io.IOException
-
available
public int available() throws java.io.IOException- Overrides:
availablein classjava.io.InputStream- Throws:
java.io.IOException
-
mark
public void mark(int readlimit)
- Overrides:
markin classjava.io.InputStream
-
markSupported
public boolean markSupported()
- Overrides:
markSupportedin classjava.io.InputStream
-
reset
public void reset() throws java.io.IOException- Overrides:
resetin classjava.io.InputStream- Throws:
java.io.IOException
-
close
public void close() throws java.io.IOException- Specified by:
closein interfacejava.lang.AutoCloseable- Specified by:
closein interfacejava.io.Closeable- Overrides:
closein classjava.io.InputStream- Throws:
java.io.IOException
-
-