commandline.binToFilePackage
Class BinaryFeed
java.lang.Object
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
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BinaryFeed
public BinaryFeed(MyDataInPutStream dis,
Configuration configuration)
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()