Java java.io ByteArrayInputStream fields, constructors, methods, implement or subclass

Example usage for Java java.io ByteArrayInputStream fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for java.io ByteArrayInputStream.

The text is from its open source code.

Subclass

java.io.ByteArrayInputStream has subclasses.
Click this link to see all its subclasses.

Field

intmark
The currently marked position in the stream.

Constructor

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.

Method

intavailable()
Returns the number of remaining bytes that can be read (or skipped over) from this input stream.
voidclose()
Closing a ByteArrayInputStream has no effect.
booleanmarkSupported()
Tests if this InputStream supports mark/reset.
intread()
Reads the next byte of data from this input stream.
intread(byte b[], int off, int len)
Reads up to len bytes of data into an array of bytes from this input stream.
intread(byte b[])
Reads some number of bytes from the input stream and stores them into the buffer array b.
voidreset()
Resets the buffer to the marked position.
longskip(long n)
Skips n bytes of input from this input stream.
StringtoString()
Returns a string representation of the object.