Class LZWCodec.LZWDecodeDictionary

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

protected static class LZWCodec.LZWDecodeDictionary extends LZWCodec.AbstractLZWDictionary
  • Constructor Details

    • LZWDecodeDictionary

      public LZWDecodeDictionary()
      Constructor.
  • Method Details

    • readCode

      public int readCode(@NonNull NonBlockingBitInputStream aBIS) throws IOException
      Read the next code
      Parameters:
      aBIS - The stream to read from
      Returns:
      The next code
      Throws:
      IOException - In case EOF is reached
    • directGetAllBytes

      @ReturnsMutableObject("speed") public byte @Nullable [] directGetAllBytes(@Nonnegative int nCode)
      Directly get all bytes for a given code without copying.
      Parameters:
      nCode - The code to look up. Must be ≥ 0.
      Returns:
      The byte array for the given code, or null if the code is not in the dictionary.