borland Packages  Class Hierarchy  jb.io Package 

InputStreamToByteArray class

java.lang.Object
   +----java.io.InputStream
           +----java.io.ByteArrayInputStream
                   +----com.borland.jb.io.InputStreamToByteArray

About the InputStreamToByteArray class

Variables  Constructors  Properties  Methods  
This class is a wrapper around java.io.ByteArrayInputStream.

InputStreamToByteArray variables

Variables implemented in java.io.ByteArrayInputStream

InputStreamToByteArray constructors

InputStreamToByteArray properties

*Read-only properties **Write-only properties

Properties implemented in this class

Properties implemented in java.lang.Object

InputStreamToByteArray methods

Methods implemented in this class

Methods implemented in java.io.ByteArrayInputStream

Methods implemented in java.io.InputStream

Methods implemented in java.lang.Object


InputStreamToByteArray constructors

InputStreamToByteArray(byte[])

  public InputStreamToByteArray(byte[] buf)
Constructs an InputStreamToByteArray object with the following parameters:

Parameters:

buf
The buffer into which the data is read.

InputStreamToByteArray(byte[], int, int)

  public InputStreamToByteArray(byte[] buf, int offset, int length)
Constructs an InputStreamToByteArray object with the following parameters:

Parameters:

buf
The buffer into which the data is read.
offset
The start offset of the data.
length
The maximum number of bytes read.

InputStreamToByteArray properties

bytes

 public byte[] getBytes()
The number of bytes read.

InputStreamToByteArray methods

getBytes(java.io.InputStream)

  public static byte[] getBytes(InputStream stream)
A static method that returns an array of bytes representing the InputStream with the specified stream.

Parameters:

stream
The specified stream.