|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.io.InputStream org.archive.io.SeekInputStream org.archive.io.BufferedSeekInputStream
public class BufferedSeekInputStream
Buffers data from some other SeekInputStream.
Constructor Summary | |
---|---|
BufferedSeekInputStream(SeekInputStream input,
int capacity)
Constructor. |
Method Summary | |
---|---|
void |
close()
Close the stream, including the wrapped input stream. |
long |
position()
Returns the stream's current position. |
void |
position(long p)
Seeks to the given position. |
int |
read()
|
int |
read(byte[] buf)
|
int |
read(byte[] buf,
int ofs,
int len)
|
long |
skip(long c)
|
Methods inherited from class org.archive.io.SeekInputStream |
---|
mark, markSupported, reset |
Methods inherited from class java.io.InputStream |
---|
available |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BufferedSeekInputStream(SeekInputStream input, int capacity) throws java.io.IOException
input
- the underlying input streamcapacity
- the size of the buffer
java.io.IOException
- if an IO occurs filling the first bufferMethod Detail |
---|
public int read() throws java.io.IOException
read
in class java.io.InputStream
java.io.IOException
public int read(byte[] buf, int ofs, int len) throws java.io.IOException
read
in class java.io.InputStream
java.io.IOException
public int read(byte[] buf) throws java.io.IOException
read
in class java.io.InputStream
java.io.IOException
public long skip(long c) throws java.io.IOException
skip
in class java.io.InputStream
java.io.IOException
public long position() throws java.io.IOException
java.io.IOException
public void position(long p) throws java.io.IOException
p
- the position to set
java.io.IOException
- if an IO error occurspublic void close() throws java.io.IOException
close
in interface java.io.Closeable
close
in class java.io.InputStream
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |