Interface IContentConsumer

    • Method Summary

      All Methods Instance Methods Abstract Methods Deprecated Methods 
      Modifier and Type Method Description
      void consume​(int contentLength, java.io.InputStream src)
      Deprecated. 
      void consume​(java.lang.String decode, int contentLength, java.io.InputStream src)
      Request to a consumer to consume specified number of bytes from the input stream
      int getContextLength()  
      java.lang.Exception getException()
      Returns the exception that caused consumption interruption.
    • Method Detail

      • consume

        void consume​(int contentLength,
                     java.io.InputStream src)
              throws java.lang.Exception
        Deprecated.
        Request to a consumer to consume specified number of bytes from the input stream
        Parameters:
        contentLength - number of bytes to consume.
        src - source input stream
        Throws:
        java.lang.Exception
      • consume

        void consume​(java.lang.String decode,
                     int contentLength,
                     java.io.InputStream src)
              throws java.lang.Exception
        Request to a consumer to consume specified number of bytes from the input stream
        Parameters:
        contentLength - number of bytes to consume.
        src - source input stream
        decode - decoder charset name
        Throws:
        java.lang.Exception
      • getException

        java.lang.Exception getException()
        Returns the exception that caused consumption interruption.
        Returns:
        the exception that caused consumption interruption.
      • getContextLength

        int getContextLength()