commandline.flatFileToBinaryPackage
Class AbstractFlatToBin

java.lang.Object
  extended by commandline.flatFileToBinaryPackage.AbstractFlatToBin
Direct Known Subclasses:
FlatToBinTester, TreeCompressedCoder

public abstract class AbstractFlatToBin
extends java.lang.Object


Field Summary
protected  int basemeshBits
           
protected  int metaBits
           
protected  int normalOffsetBits
           
protected  int normalOffsetGain
           
protected  int tesselationBits
           
protected  int tesselationGain
           
protected  int treeBits
           
protected  int treeGain
           
protected  int verticalOffsetBits
           
protected  int verticalOffsetGain
           
 
Constructor Summary
AbstractFlatToBin(Configuration configuration, DataStructure dataStructure, CodedFile treeStucture, MyDataOutPutStream dos)
           
 
Method Summary
 void convert()
           
 int getBasemeshBits()
           
 DataStructure getBreathFirstDatastructure()
           
 MyDataOutPutStream getDos()
           
 int getMetaBits()
           
 int getNormalOffsetBits()
           
 int getNormalOffsetGain()
           
 int getTesselationBits()
           
 int getTesselationGain()
           
 int getTreeBits()
           
 int getTreeGain()
           
 CodedFile getTreeStructure()
           
 int getVerticalOffsetBits()
           
 int getVerticalOffsetGain()
           
protected  void printCharArray(char[] array, java.io.PrintStream printStream)
           
protected  void printStringArray(java.lang.String[] bitarray, java.io.PrintStream printStream)
           
 void printto(java.io.PrintStream printStream)
           
protected  int writeArrayListOfBitStringsToBytes(java.util.ArrayList<java.lang.String> codewoorden)
          Deprecated. use writeBitSetToBytes
protected  int writeBitSetToBytes(java.util.ArrayList<java.lang.String> codewoorden)
          TEST METHOD
protected  int writeBitSetToBytes(java.util.BitSet bits)
           
protected  int writeByteArray(byte[] b)
          writes out the bytes in b and returns the number of bits
protected  int writeMyFloat(float getal)
          writes a FLOAt to a file and returns the number of bits used
protected  int writeMyInt(int getal)
          writes an INT to a file and returns the number of bits used
protected  int writeMyShort(int getal)
          schrijft een short naar een file en geeft het aantal weggeschreven bits terug
protected  void writeOffsets()
           
protected  void writeTesselations()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

verticalOffsetBits

protected int verticalOffsetBits

verticalOffsetGain

protected int verticalOffsetGain

normalOffsetBits

protected int normalOffsetBits

normalOffsetGain

protected int normalOffsetGain

tesselationBits

protected int tesselationBits

tesselationGain

protected int tesselationGain

treeGain

protected int treeGain

treeBits

protected int treeBits

basemeshBits

protected int basemeshBits

metaBits

protected int metaBits
Constructor Detail

AbstractFlatToBin

public AbstractFlatToBin(Configuration configuration,
                         DataStructure dataStructure,
                         CodedFile treeStucture,
                         MyDataOutPutStream dos)
Method Detail

convert

public void convert()
             throws java.io.IOException
Throws:
java.io.IOException

writeTesselations

protected void writeTesselations()

writeOffsets

protected void writeOffsets()

getVerticalOffsetBits

public int getVerticalOffsetBits()

getBreathFirstDatastructure

public DataStructure getBreathFirstDatastructure()

getDos

public MyDataOutPutStream getDos()

getNormalOffsetBits

public int getNormalOffsetBits()

getNormalOffsetGain

public int getNormalOffsetGain()

getTesselationBits

public int getTesselationBits()

getTesselationGain

public int getTesselationGain()

getTreeBits

public int getTreeBits()

getTreeGain

public int getTreeGain()

getTreeStructure

public CodedFile getTreeStructure()

getVerticalOffsetGain

public int getVerticalOffsetGain()

getBasemeshBits

public int getBasemeshBits()

getMetaBits

public int getMetaBits()

printto

public void printto(java.io.PrintStream printStream)

writeArrayListOfBitStringsToBytes

protected int writeArrayListOfBitStringsToBytes(java.util.ArrayList<java.lang.String> codewoorden)
                                         throws java.io.IOException
Deprecated. use writeBitSetToBytes

Parameters:
codewoorden -
Returns:
Throws:
java.io.IOException

writeBitSetToBytes

protected int writeBitSetToBytes(java.util.ArrayList<java.lang.String> codewoorden)
                          throws java.io.IOException
TEST METHOD

Parameters:
codewoorden -
Returns:
Throws:
java.io.IOException

writeBitSetToBytes

protected int writeBitSetToBytes(java.util.BitSet bits)
                          throws java.io.IOException
Throws:
java.io.IOException

writeMyShort

protected int writeMyShort(int getal)
schrijft een short naar een file en geeft het aantal weggeschreven bits terug


writeMyInt

protected int writeMyInt(int getal)
writes an INT to a file and returns the number of bits used


writeMyFloat

protected int writeMyFloat(float getal)
writes a FLOAt to a file and returns the number of bits used


writeByteArray

protected int writeByteArray(byte[] b)
writes out the bytes in b and returns the number of bits


printCharArray

protected void printCharArray(char[] array,
                              java.io.PrintStream printStream)

printStringArray

protected void printStringArray(java.lang.String[] bitarray,
                                java.io.PrintStream printStream)