jwutil.io
Class ByteSequence

java.lang.Object
  extended by java.io.InputStream
      extended by java.io.FilterInputStream
          extended by java.io.DataInputStream
              extended by jwutil.io.ByteSequence
All Implemented Interfaces:
java.io.Closeable, java.io.DataInput

public final class ByteSequence
extends java.io.DataInputStream

A version of DataInputStream backed by a byte array. It supports getIndex() and unreadByte().

Version:
$Id: ByteSequence.java 2277 2005-05-28 09:26:16Z joewhaley $
Author:
John Whaley

Field Summary
 
Fields inherited from class java.io.FilterInputStream
in
 
Constructor Summary
ByteSequence(byte[] bytes)
           
ByteSequence(byte[] bytes, int offset, int length)
           
 
Method Summary
 int getIndex()
           
 void unreadByte()
           
 
Methods inherited from class java.io.DataInputStream
read, read, readBoolean, readByte, readChar, readDouble, readFloat, readFully, readFully, readInt, readLine, readLong, readShort, readUnsignedByte, readUnsignedShort, readUTF, readUTF, skipBytes
 
Methods inherited from class java.io.FilterInputStream
available, close, mark, markSupported, read, reset, skip
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ByteSequence

public ByteSequence(byte[] bytes)

ByteSequence

public ByteSequence(byte[] bytes,
                    int offset,
                    int length)
Method Detail

getIndex

public final int getIndex()

unreadByte

public final void unreadByte()


Copyright © 2004-2008 SUIF Compiler Group. All Rights Reserved.