Package org.broad.tribble.util
Class SeekableStream
- java.lang.Object
-
- java.io.InputStream
-
- org.broad.tribble.util.SeekableStream
-
- All Implemented Interfaces:
java.io.Closeable
,java.lang.AutoCloseable
- Direct Known Subclasses:
SeekableFileStream
public abstract class SeekableStream extends java.io.InputStream
User: jrobinso Date: Nov 29, 2009
-
-
Constructor Summary
Constructors Constructor Description SeekableStream()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract boolean
eof()
abstract long
length()
abstract long
position()
void
readFully(byte[] b)
Read enough bytes to fill the input bufferabstract void
seek(long position)
-
-
-
Method Detail
-
seek
public abstract void seek(long position) throws java.io.IOException
- Throws:
java.io.IOException
-
position
public abstract long position() throws java.io.IOException
- Throws:
java.io.IOException
-
readFully
public void readFully(byte[] b) throws java.io.IOException
Read enough bytes to fill the input buffer- Throws:
java.io.IOException
-
eof
public abstract boolean eof() throws java.io.IOException
- Throws:
java.io.IOException
-
length
public abstract long length()
-
-