Class TranscodingStreamingContext

    • Constructor Detail

      • TranscodingStreamingContext

        public TranscodingStreamingContext​(ContainerServices cs,
                                           java.lang.String encode)
    • Method Detail

      • consume

        public void consume​(int contentLength,
                            java.io.InputStream src)
                     throws java.lang.Exception
        Description copied from interface: IContentConsumer
        Request to a consumer to consume specified number of bytes from the input stream
        Specified by:
        consume in interface IContentConsumer
        Overrides:
        consume in class StreamingContext
        Parameters:
        contentLength - number of bytes to consume.
        src - source input stream
        Throws:
        java.lang.Exception
      • consume

        public void consume​(java.lang.String decodeCharsetName,
                            int contentLength,
                            java.io.InputStream src)
                     throws java.lang.Exception
        Description copied from interface: IContentConsumer
        Request to a consumer to consume specified number of bytes from the input stream
        Specified by:
        consume in interface IContentConsumer
        Overrides:
        consume in class StreamingContext
        Parameters:
        decodeCharsetName - decoder charset name
        contentLength - number of bytes to consume.
        src - source input stream
        Throws:
        java.lang.Exception
      • transcode

        public void transcode​(java.io.OutputStream out)
                       throws java.io.IOException,
                              java.nio.charset.CharacterCodingException
        Throws:
        java.io.IOException
        java.nio.charset.CharacterCodingException
      • encode

        public void encode​(java.nio.CharBuffer charBuff,
                           java.io.OutputStream out)
                    throws java.nio.charset.CharacterCodingException,
                           java.io.IOException
        Throws:
        java.nio.charset.CharacterCodingException
        java.io.IOException