Class EscapedByteLookupCharset.Decoder

java.lang.Object
java.nio.charset.CharsetDecoder
net.freeutils.charset.EscapedByteLookupCharset.Decoder
Direct Known Subclasses:
PackedGSMCharset.Decoder
Enclosing class:
EscapedByteLookupCharset

protected class EscapedByteLookupCharset.Decoder extends CharsetDecoder
The Decoder inner class handles the decoding of the charset using the inverse lookup tables.
  • Constructor Details

    • Decoder

      protected Decoder(Charset cs)
      Constructs a Decoder.
      Parameters:
      cs - the charset to which this decoder belongs
    • Decoder

      protected Decoder(Charset cs, float averageCharsPerByte, float maxCharsPerByte)
      Constructs a Decoder.
      Parameters:
      cs - the charset to which this decoder belongs
  • Method Details

    • decodeLoop

      protected CoderResult decodeLoop(ByteBuffer in, CharBuffer out)
      Decodes one or more bytes into one or more characters.
      Specified by:
      decodeLoop in class CharsetDecoder
      Parameters:
      in - the input byte buffer
      out - the output character buffer
      Returns:
      a coder-result object describing the reason for termination