Class LZWCodec.LZWNode

java.lang.Object
com.helger.base.codec.impl.LZWCodec.LZWNode
Enclosing class:
LZWCodec

protected static class LZWCodec.LZWNode extends Object
A single LZW node
Author:
Philip Helger
  • Constructor Details

    • LZWNode

      public LZWNode()
    • LZWNode

      public LZWNode(@Nonnegative int nTableIndex)
  • Method Details

    • getTableIndex

      @Nonnegative public int getTableIndex()
    • setChildNode

      public void setChildNode(@Nonnegative byte nIndex, @Nonnull LZWCodec.LZWNode aNode)
    • getChildNode

      @Nullable public LZWCodec.LZWNode getChildNode(byte nIndex)
    • getChildNode

      @Nullable public LZWCodec.LZWNode getChildNode(@Nonnull byte[] aBuffer)
      This will traverse the tree until it gets to the sub node. This will return null if the node does not exist.
      Parameters:
      aBuffer - The path to the node.
      Returns:
      The node that resides at the data path.
    • toString

      public String toString()
      Overrides:
      toString in class Object