public class BufferedSeekInputStream extends SeekInputStream
| Constructor and Description |
|---|
BufferedSeekInputStream(SeekInputStream input,
int capacity)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
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) |
mark, markSupported, resetpublic BufferedSeekInputStream(SeekInputStream input, int capacity) throws java.io.IOException
input - the underlying input streamcapacity - the size of the bufferjava.io.IOException - if an IO occurs filling the first bufferpublic int read()
throws java.io.IOException
read in class java.io.InputStreamjava.io.IOExceptionpublic int read(byte[] buf,
int ofs,
int len)
throws java.io.IOException
read in class java.io.InputStreamjava.io.IOExceptionpublic int read(byte[] buf)
throws java.io.IOException
read in class java.io.InputStreamjava.io.IOExceptionpublic long skip(long c)
throws java.io.IOException
skip in class java.io.InputStreamjava.io.IOExceptionpublic long position()
throws java.io.IOException
java.io.IOExceptionpublic void position(long p)
throws java.io.IOException
p - the position to setjava.io.IOException - if an IO error occurspublic void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseableclose in class java.io.InputStreamjava.io.IOExceptionCopyright © 2019 The International Internet Preservation Consortium. All Rights Reserved.