All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class com.ibm.archiveaccessor.filestore.Reads

java.lang.Object
   |
   +----com.ibm.archiveaccessor.filestore.Reads

public final class Reads
extends Object
This is a fast variable-length reader.

It reads into a series of buffers, each buffer being twice as large as the last.

At the end, it allocates a single buffer exactly equal in length to the total bytes read. It then copies everything into this final buffer.


Constructor Index

 o Reads()

Method Index

 o read(InputStream)
Reads all bytes from an input stream.

Constructors

 o Reads
 public Reads()

Methods

 o read
 public static byte[] read(InputStream is) throws IOException
Reads all bytes from an input stream.

Parameters:
is - input stream to read from.
Returns:
buffer of read bytes.

All Packages  Class Hierarchy  This Package  Previous  Next  Index