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, resetpublic ArraySeekInputStream(byte[] array)
array - The array to read bytes from.public int read()
read in class java.io.InputStreampublic int read(byte[] buf,
int ofs,
int len)
read in class java.io.InputStreampublic int read(byte[] buf)
read in class java.io.InputStreampublic long position()
public void position(long p)
throws java.io.IOException
p - the new position for the streamjava.io.IOException - if the given position is out of boundsCopyright © 2019 The International Internet Preservation Consortium. All Rights Reserved.