public class ArraySeekInputStream extends SeekInputStream
| Constructor and Description |
|---|
ArraySeekInputStream(byte[] array)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
long |
position()
Returns the position of the stream.
|
void |
position(long p)
Repositions the stream.
|
int |
read() |
int |
read(byte[] buf) |
int |
read(byte[] buf,
int ofs,
int len) |
mark, markSupported, resetavailable, close, skippublic ArraySeekInputStream(byte[] array)
array - The array to read bytes from.public int read()
read in class InputStreampublic int read(byte[] buf,
int ofs,
int len)
read in class InputStreampublic int read(byte[] buf)
read in class InputStreampublic long position()
public void position(long p)
throws IOException
p - the new position for the streamIOException - if the given position is out of boundsCopyright © 2015 The International Internet Preservation Consortium. All Rights Reserved.