edu.usc.bg.base
Class ByteArrayByteIterator

java.lang.Object
  extended by edu.usc.bg.base.ByteIterator
      extended by edu.usc.bg.base.ByteArrayByteIterator
All Implemented Interfaces:
java.util.Iterator<java.lang.Byte>

public class ByteArrayByteIterator
extends ByteIterator


Constructor Summary
ByteArrayByteIterator(byte[] s)
           
ByteArrayByteIterator(byte[] s, int off, int len)
           
 
Method Summary
 long bytesLeft()
           
 boolean hasNext()
           
 byte nextByte()
           
 
Methods inherited from class edu.usc.bg.base.ByteIterator
next, nextBuf, remove, toArray, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ByteArrayByteIterator

public ByteArrayByteIterator(byte[] s)

ByteArrayByteIterator

public ByteArrayByteIterator(byte[] s,
                             int off,
                             int len)
Method Detail

hasNext

public boolean hasNext()
Specified by:
hasNext in interface java.util.Iterator<java.lang.Byte>
Specified by:
hasNext in class ByteIterator

nextByte

public byte nextByte()
Specified by:
nextByte in class ByteIterator

bytesLeft

public long bytesLeft()
Specified by:
bytesLeft in class ByteIterator