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
- available()
- close()
- mark(int)
- markSupported()
- read()
- read(byte[], int, int)
- reset()
- skip(long)
Methods implemented in java.io.InputStream
Methods implemented in java.lang.Object
- clone()
- equals(java.lang.Object)
- finalize()
- hashCode()
- notify()
- notifyAll()
- toString()
- wait()
- wait(long)
- wait(long, int)
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.