commandline.binToFilePackage
Class BinaryFeed

java.lang.Object
  extended by commandline.binToFilePackage.BinaryFeed

public class BinaryFeed
extends java.lang.Object

Class that reads the necessary structures from the binary file and makes them available for decoding

Author:
ward

Constructor Summary
BinaryFeed(MyDataInPutStream dis, Configuration configuration)
           
 
Method Summary
 DecoderMesh getDecoderMesh()
           
 OrdinaryNormalOffsetIterator getNormalOffsetIterator()
           
protected  int getPositionOfNextCodeWord(java.util.ArrayList<java.lang.String> previouscodelist, java.util.ArrayList<java.lang.String> codewords)
           
 TesselationIterator getTesselationIterator()
           
 TreeStructureIterator getTreeStructureIterator()
           
 OrdinaryVerticalOffsetIterator getVerticalOffsetIterator()
           
 void read()
          method that reads in all necessary structures
protected  void readBaseMesh()
           
protected  TesselationIterator readTesselations()
           
protected  TreeStructureIterator readTreeStructure()
           
protected  OrdinaryVerticalOffsetIterator readVerticalOffsets()
          reads the number of vertical offset codes and stores the codes in an arraylist it returns the appropriate VerticalOffsetIterator according to the Configuration file
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BinaryFeed

public BinaryFeed(MyDataInPutStream dis,
                  Configuration configuration)
Method Detail

read

public void read()
method that reads in all necessary structures


readBaseMesh

protected void readBaseMesh()

readTreeStructure

protected TreeStructureIterator readTreeStructure()

readTesselations

protected TesselationIterator readTesselations()

readVerticalOffsets

protected OrdinaryVerticalOffsetIterator readVerticalOffsets()
reads the number of vertical offset codes and stores the codes in an arraylist it returns the appropriate VerticalOffsetIterator according to the Configuration file

Returns:

getPositionOfNextCodeWord

protected int getPositionOfNextCodeWord(java.util.ArrayList<java.lang.String> previouscodelist,
                                        java.util.ArrayList<java.lang.String> codewords)

getTreeStructureIterator

public TreeStructureIterator getTreeStructureIterator()

getTesselationIterator

public TesselationIterator getTesselationIterator()

getVerticalOffsetIterator

public OrdinaryVerticalOffsetIterator getVerticalOffsetIterator()

getNormalOffsetIterator

public OrdinaryNormalOffsetIterator getNormalOffsetIterator()

getDecoderMesh

public DecoderMesh getDecoderMesh()