Class StreamingContext

    • Field Detail

      • _ex

        protected java.lang.Exception _ex
      • CONTENT_LENGTH_NAME

        public static final java.lang.String CONTENT_LENGTH_NAME
        See Also:
        Constant Field Values
      • _canRedirect

        protected boolean _canRedirect
      • _contentLength

        protected int _contentLength
    • 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
        Parameters:
        contentLength - number of bytes to consume.
        src - source input stream
        Throws:
        java.lang.Exception
      • consume

        public void consume​(java.lang.String decode,
                            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
        Parameters:
        decode - decoder charset name
        contentLength - number of bytes to consume.
        src - source input stream
        Throws:
        java.lang.Exception
      • getException

        public java.lang.Exception getException()
        Description copied from interface: IContentConsumer
        Returns the exception that caused consumption interruption.
        Specified by:
        getException in interface IContentConsumer
        Returns:
        the exception that caused consumption interruption.
      • canRedirect

        public boolean canRedirect()
      • setContentLength

        protected void setContentLength​(int contentLength)