public class ByteArraySeekableStream extends SeekableStream
| Constructor and Description |
|---|
ByteArraySeekableStream(byte[] bytes) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
boolean |
eof() |
java.lang.String |
getSource() |
long |
length() |
long |
position() |
int |
read() |
int |
read(byte[] b,
int off,
int len) |
void |
seek(long position) |
readFullypublic long length()
length in class SeekableStreampublic long position()
throws java.io.IOException
position in class SeekableStreamjava.io.IOExceptionpublic void seek(long position)
throws java.io.IOException
seek in class SeekableStreamjava.io.IOExceptionpublic int read()
throws java.io.IOException
read in class java.io.InputStreamjava.io.IOExceptionpublic int read(byte[] b,
int off,
int len)
throws java.io.IOException
read in class SeekableStreamjava.io.IOExceptionpublic void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseableclose in class SeekableStreamjava.io.IOExceptionpublic boolean eof()
throws java.io.IOException
eof in class SeekableStreamjava.io.IOExceptionpublic java.lang.String getSource()
getSource in class SeekableStream