Interface StreamDecoderState

  • All Known Implementing Classes:

    public interface StreamDecoderState
    Retains state of the InputStream based decode either between calls or across decode iterations
    • Method Detail

      • decodeUTF8

        java.lang.String decodeUTF8​( stream,
                                    int length)
                             throws DecodeException
        Given a stream that will provide UTF-8 encoded bytes, decode and return the String that represents that UTF-8 value.
        stream - A stream from which the UTF-8 encoded bytes are to be decoded.
        length - The number of bytes in the passed InputStream that comprise the UTF-8 encoding.
        a String that represents the UTF-8 decoded bytes.
        DecodeException - if an error occurs while decoding the string value.