public static class SocketHelper.ByteArrayBackedInputStream
extends java.io.InputStream
| Constructor and Description |
|---|
ByteArrayBackedInputStream(byte[] buffer)
Consruct a SocketHelper$ByteArrayBackedInputStream object.
|
| Modifier and Type | Method and Description |
|---|---|
void |
append(byte[] buffer)
Append to the input stream.
|
int |
read() |
int |
read(byte[] bytes,
int offset,
int length) |
void |
reset() |
public ByteArrayBackedInputStream(byte[] buffer)
buffer - an array of bytespublic void append(byte[] buffer)
buffer - the buffer to be appended.public int read()
throws java.io.IOException
read in class java.io.InputStreamjava.io.IOExceptionpublic int read(byte[] bytes,
int offset,
int length)
throws java.io.IOException
read in class java.io.InputStreamjava.io.IOExceptionpublic void reset()
reset in class java.io.InputStream