edu.usc.bg.base
Class RandomByteIterator

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

public class RandomByteIterator
extends ByteIterator


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

Constructor Detail

RandomByteIterator

public RandomByteIterator(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

nextBuf

public int nextBuf(byte[] b,
                   int buf_off)
Overrides:
nextBuf in class ByteIterator
Returns:
byte offset immediately after the last valid byte

bytesLeft

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