Example usage for Java java.io ByteArrayInputStream fields, constructors, methods, implement or subclass
The text is from its open source code.
int | mark The currently marked position in the stream. |
ByteArrayInputStream(byte buf[]) Creates a ByteArrayInputStream so that it uses buf as its buffer array. | |
ByteArrayInputStream(byte buf[], int offset, int length) Creates ByteArrayInputStream that uses buf as its buffer array. |
int | available() Returns the number of remaining bytes that can be read (or skipped over) from this input stream. |
void | close() Closing a ByteArrayInputStream has no effect. |
boolean | markSupported() Tests if this InputStream supports mark/reset. |
int | read() Reads the next byte of data from this input stream. |
int | read(byte b[], int off, int len) Reads up to len bytes of data into an array of bytes from this input stream. |
int | read(byte b[]) Reads some number of bytes from the input stream and stores them into the buffer array b . |
void | reset() Resets the buffer to the marked position. |
long | skip(long n) Skips n bytes of input from this input stream. |
String | toString() Returns a string representation of the object. |