Class ByteLookupCharset.Decoder

java.lang.Object
java.nio.charset.CharsetDecoder
net.freeutils.charset.ByteLookupCharset.Decoder
Enclosing class:
ByteLookupCharset

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

    • Decoder

      protected Decoder(Charset cs)
      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