public class SeekableMemoryStream extends SeekableStream
| Constructor and Description |
|---|
SeekableMemoryStream(byte[] data,
String source) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
boolean |
eof() |
String |
getSource() |
long |
length() |
long |
position() |
int |
read() |
int |
read(byte[] buffer,
int offset,
int length) |
void |
seek(long position) |
readFullyavailable, mark, markSupported, read, reset, skippublic SeekableMemoryStream(byte[] data,
String source)
public 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 SeekableStreampublic long length()
length in class SeekableStreampublic int read(byte[] buffer,
int offset,
int length)
throws IOException
read in class SeekableStreamIOExceptionpublic void seek(long position)
throws IOException
seek in class SeekableStreamIOExceptionpublic int read()
throws IOException
read in class InputStreamIOExceptionpublic long position()
throws IOException
position in class SeekableStreamIOException