edu.usc.bg.base
Class InputStreamByteIterator

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

public class InputStreamByteIterator
extends ByteIterator


Constructor Summary
InputStreamByteIterator(java.io.InputStream ins, long 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

InputStreamByteIterator

public InputStreamByteIterator(java.io.InputStream ins,
                               long 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