commandline.binToFilePackage.iterators.verticalOffsetsPackage
Class OrdinaryVerticalOffsetIterator

java.lang.Object
  extended by commandline.binToFilePackage.iterators.verticalOffsetsPackage.OrdinaryVerticalOffsetIterator
Direct Known Subclasses:
HuffmanVerticalOffsetIterator

public class OrdinaryVerticalOffsetIterator
extends java.lang.Object

Responsible for the storage of the vertical codewords that where read out and must be available during the decoding

Author:
ward

Field Summary
protected  java.util.ArrayList<java.lang.String> bitlist
           
protected  MyDataInPutStream dis
           
protected  int nbr_verticaloffsetbits
           
protected  java.util.ArrayList<java.lang.Integer> verticalOffsetArrayList
           
 
Constructor Summary
OrdinaryVerticalOffsetIterator(MyDataInPutStream dis)
           
 
Method Summary
 int getNextVertikalOffset(GenericEdge e)
           
 VerticalDistribution_discr getVerticalDistribution()
           
protected  void readBitsList()
          reads in the number of bits used for the vertical offsets and fills the bitlist
protected  void readMetaData()
          reads in the number of verticalOffsets and other meta data if needed
protected  java.lang.String readNextCodeWord(GenericEdge e)
          reads the next codeword in the bitlist
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

verticalOffsetArrayList

protected java.util.ArrayList<java.lang.Integer> verticalOffsetArrayList

dis

protected MyDataInPutStream dis

bitlist

protected java.util.ArrayList<java.lang.String> bitlist

nbr_verticaloffsetbits

protected int nbr_verticaloffsetbits
Constructor Detail

OrdinaryVerticalOffsetIterator

public OrdinaryVerticalOffsetIterator(MyDataInPutStream dis)
Method Detail

getVerticalDistribution

public VerticalDistribution_discr getVerticalDistribution()

readBitsList

protected void readBitsList()
reads in the number of bits used for the vertical offsets and fills the bitlist


readMetaData

protected void readMetaData()
reads in the number of verticalOffsets and other meta data if needed


readNextCodeWord

protected java.lang.String readNextCodeWord(GenericEdge e)
reads the next codeword in the bitlist

Returns:

getNextVertikalOffset

public int getNextVertikalOffset(GenericEdge e)
Returns:
the next vertical offset