public abstract class AbstractBufferingStream extends Object implements Stream
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
atEof |
protected byte[] |
buffer |
protected int |
bufferCursor |
protected int |
bufferRemaining |
protected boolean |
closed |
protected static int |
DEFAULT_READ_SIZE |
protected long |
offset |
| Constructor and Description |
|---|
AbstractBufferingStream() |
AbstractBufferingStream(long offset) |
AbstractBufferingStream(long offset,
int readSize) |
protected static int DEFAULT_READ_SIZE
protected long offset
protected boolean closed
protected boolean atEof
protected byte[] buffer
protected int bufferRemaining
protected int bufferCursor
public AbstractBufferingStream()
public AbstractBufferingStream(long offset)
public AbstractBufferingStream(long offset,
int readSize)
public abstract int doRead(byte[] b,
int off,
int len)
throws IOException
IOExceptionpublic abstract void doSeek(long offset)
throws IOException
IOExceptionpublic abstract void doClose()
throws IOException
IOExceptionpublic int read(byte[] b,
int off,
int len)
throws IOException
read in interface StreamIOExceptionpublic long setOffset(long newOffset)
throws IOException
setOffset in interface StreamIOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionCopyright © 2015 The International Internet Preservation Consortium. All Rights Reserved.