com.github.libxjava.io
Class ByteArrayBuffer.Reader
java.lang.Object
java.io.InputStream
com.github.libxjava.io.ByteArrayBuffer.Reader
- Enclosing class:
- ByteArrayBuffer
public final class ByteArrayBuffer.Reader
- extends InputStream
ByteArrayBuffer.Reader
public ByteArrayBuffer.Reader()
available
public int available()
- Overrides:
available in class InputStream
mark
public void mark(int readlimit)
- Marks the current position in this input stream. A subsequent call to
the
reset method repositions this stream at the last marked
position so that subsequent reads re-read the same bytes.
The readlimit arguments tells this input stream to
allow that many bytes to be read before the mark position gets
invalidated. readlimit must never be higher then
ByteArrayBuffer.capacity() - 1!
- Overrides:
mark in class InputStream
- Parameters:
readlimit - the maximum limit of bytes that can be read before
the mark position becomes invalid.
- Throws:
IllegalArgumentException - if readlimit exceeds the buffer size
markSupported
public boolean markSupported()
- Overrides:
markSupported in class InputStream
reset
public void reset()
throws IOException
- Overrides:
reset in class InputStream
- Throws:
IOException
read
public int read()
throws IOException
- Specified by:
read in class InputStream
- Throws:
IOException
read
public int read(byte[] b,
int off,
int len)
throws IOException
- Overrides:
read in class InputStream
- Throws:
IOException
read
public int read(byte[] b)
throws IOException
- Overrides:
read in class InputStream
- Throws:
IOException
Copyright © 2011 Marcel Patzlaff. All Rights Reserved.