org.basex.io
Class CachedInput

java.lang.Object
  extended by org.basex.io.BufferInput
      extended by org.basex.io.CachedInput

public final class CachedInput
extends BufferInput

This class allows reading from a cached byte array.

Author:
Workgroup DBIS, University of Konstanz 2005-08, ISC License, Christian Gruen

Constructor Summary
CachedInput(byte[] input)
          Initializes the file reader.
 
Method Summary
 byte readByte()
          Returns the next byte.
 
Methods inherited from class org.basex.io.BufferInput
close, encoding, encoding, length, length, read, read, readChar, size
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CachedInput

public CachedInput(byte[] input)
Initializes the file reader.

Parameters:
input - input bytes
Method Detail

readByte

public byte readByte()
Returns the next byte.

Overrides:
readByte in class BufferInput
Returns:
next byte