Class HuffmanNode

java.lang.Object
de.jarnbjo.util.io.HuffmanNode

public final class HuffmanNode
extends java.lang.Object
  • Field Summary

    Fields
    Modifier and Type Field Description
    protected HuffmanNode o0  
    protected HuffmanNode o1  
    protected java.lang.Integer value  
  • Constructor Summary

    Constructors
    Modifier Constructor Description
      HuffmanNode()  
    protected HuffmanNode​(HuffmanNode huffmanNode)  
    protected HuffmanNode​(HuffmanNode huffmanNode, int int1)  
  • Method Summary

    Modifier and Type Method Description
    protected HuffmanNode get0()  
    protected HuffmanNode get1()  
    protected int getDepth()  
    protected java.lang.Integer getValue()  
    protected int read​(BitInputStream bitInputStream)  
    boolean setNewValue​(int int1, int int2)  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • Constructor Details

    • HuffmanNode

      public HuffmanNode()
    • HuffmanNode

      protected HuffmanNode​(HuffmanNode huffmanNode)
    • HuffmanNode

      protected HuffmanNode​(HuffmanNode huffmanNode, int int1)
  • Method Details

    • read

      protected int read​(BitInputStream bitInputStream) throws java.io.IOException
      Throws:
      java.io.IOException
    • get0

      protected HuffmanNode get0()
    • get1

      protected HuffmanNode get1()
    • getValue

      protected java.lang.Integer getValue()
    • getDepth

      protected int getDepth()
    • setNewValue

      public boolean setNewValue​(int int1, int int2)