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.InputStreamUser: 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 booleaneof()abstract longlength()abstract longposition()voidreadFully(byte[] b)Read enough bytes to fill the input bufferabstract voidseek(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.IOExceptionRead 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()
-
-