Class Utf8Decoder

java.lang.Object
org.apache.pekko.http.impl.engine.ws.Utf8Decoder

public class Utf8Decoder extends Object
A Utf8 -> Utf16 (= Java char) decoder.

This decoder is based on the one of Bjoern Hoehrmann from https://bjoern.hoehrmann.de/utf-8/decoder/dfa/ (MIT License).

INTERNAL API

  • Constructor Details

    • Utf8Decoder

      public Utf8Decoder()
  • Method Details

    • characterClasses

      public static byte[] characterClasses()
    • states

      public static byte[] states()
    • create

      public static StreamingCharsetDecoderInstance create()
    • decode

      public static scala.util.Try<String> decode(org.apache.pekko.util.ByteString bytes)