bt747.sys
Class ByteDataStream

java.lang.Object
  extended by bt747.sys.ByteDataStream
All Implemented Interfaces:
BT747InputStream

public final class ByteDataStream
extends java.lang.Object
implements BT747InputStream


Constructor Summary
ByteDataStream(byte[] data)
           
 
Method Summary
 int readBytes(byte[] b, int off, int len)
          Read bytes from file to buffer.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ByteDataStream

public ByteDataStream(byte[] data)
Method Detail

readBytes

public final int readBytes(byte[] b,
                           int off,
                           int len)
Description copied from interface: BT747InputStream
Read bytes from file to buffer.

Specified by:
readBytes in interface BT747InputStream
Parameters:
b - Byte buffer.
off - Start offset in buffer to start reading from file.
len - Number of bytes to read from file.
Returns:
number of bytes read.