| java.io.ByteArrayInputStream org.jgroups.util.ExposedByteArrayInputStream
ExposedByteArrayInputStream | public class ExposedByteArrayInputStream extends ByteArrayInputStream (Code) | | author: Bela Ban version: $Id: ExposedByteArrayInputStream.java,v 1.1 2005/07/25 15:53:36 belaban Exp $ |
Constructor Summary | |
public | ExposedByteArrayInputStream(byte[] buf) Creates a ByteArrayInputStream
so that it uses buf as its
buffer array. | public | ExposedByteArrayInputStream(byte[] buf, int offset, int length) Creates ByteArrayInputStream
that uses buf as its
buffer array. |
Method Summary | |
public void | setData(byte[] buf, int offset, int length) |
ExposedByteArrayInputStream | public ExposedByteArrayInputStream(byte[] buf)(Code) | | Creates a ByteArrayInputStream
so that it uses buf as its
buffer array.
The buffer array is not copied.
The initial value of pos
is 0 and the initial value
of count is the length of
buf .
Parameters: buf - the input buffer. |
ExposedByteArrayInputStream | public ExposedByteArrayInputStream(byte[] buf, int offset, int length)(Code) | | Creates ByteArrayInputStream
that uses buf as its
buffer array. The initial value of pos
is offset and the initial value
of count is the minimum of offset+length
and buf.length .
The buffer array is not copied. The buffer's mark is
set to the specified offset.
Parameters: buf - the input buffer. Parameters: offset - the offset in the buffer of the first byte to read. Parameters: length - the maximum number of bytes to read from the buffer. |
setData | public void setData(byte[] buf, int offset, int length)(Code) | | |
|
|