Public class ByteArrayInputStream extends
InputStream
Constructor | Description |
---|---|
ByteArrayInputStream (byte[] buf) | The function of this constructor is to create the byte array input stream and reads into the internal buffer called array. |
ByteArrayInputStream (byte[] buf, int offset, int len) | The function of this constructor is to create the byte array input stream with represented size of buffer. |
Method | Description |
---|---|
void close () | The function of this method is to close the present stream and associated to input stream systems resources are released without any impact. |
Long skip (long m) | The function of this method is to skip the text or characters in this stream of ' m ' bytes. |
Boolean markSupported () | The function of this method is to check the represented mark method is supported by this stream or not |
int read(byte[] b, int off, int n) | By using this method it reads the data up to 'n' bytes from the input stream into an array of bytes. |