public class ByteArraySeekableStream extends SeekableStream
| Constructor and Description |
|---|
ByteArraySeekableStream(byte[] bytes) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
boolean |
eof() |
String |
getSource() |
long |
length() |
long |
position() |
int |
read() |
int |
read(byte[] b,
int off,
int len) |
void |
seek(long position) |
readFullyavailable, mark, markSupported, read, reset, skippublic long length()
length in class SeekableStreampublic long position()
throws IOException
position in class SeekableStreamIOExceptionpublic void seek(long position)
throws IOException
seek in class SeekableStreamIOExceptionpublic int read()
throws IOException
read in class InputStreamIOExceptionpublic int read(byte[] b,
int off,
int len)
throws IOException
read in class SeekableStreamIOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class SeekableStreamIOExceptionpublic boolean eof()
throws IOException
eof in class SeekableStreamIOExceptionpublic String getSource()
getSource in class SeekableStream