Class ZappyDecoder


public final class ZappyDecoder extends ZappyBase64StringDecoder
Zappy decoder.

It uses base64 as the message encoding, but the internal bytes are compressed.

  • Constructor Details

    • ZappyDecoder

      public ZappyDecoder(Map<Integer,Map<Integer,byte[]>> contractions)
      Creates a Zappy decoder.
      Parameters:
      contractions - The contractions used for aiding compression.
  • Method Details

    • decode

      public String decode(String str) throws ZappyParseException
      Turns a Zappy compressed string into a string.
      Parameters:
      str - A Zappy compressed string.
      Returns:
      Expanded string.
      Throws:
      ZappyParseException - if it's an invalid Zappy string.