JavaScript is disabled on your browser.
  • Summary:
  • Nested |
  • Field |
  • Constr |
  • Method
  • Detail:
  • Field |
  • Constr |
  • Method
gnu.inet.http

Interface ResponseBodyReader

  • All Known Implementing Classes:
    ByteArrayResponseBodyReader


    public interface ResponseBodyReader
    Callback interface for receiving notification of response body content.
    • Method Summary

      Methods
      Modifier and Type Method and Description
      boolean accept (Request request, Response response)
      Indicate whether this reader is interested in the specified response.
      void close ()
      Notifies the reader that the end of the content was reached.
      void read (byte[] buffer, int offset, int length)
      Receive notification of body content.
    • Method Detail

      • accept

        boolean accept(Request request,
         Response response)
        Indicate whether this reader is interested in the specified response. If it returns false, it will not receive body content notifications for that response.
      • read

        void read(byte[] buffer,
         int offset,
         int length)
        Receive notification of body content.
        Parameters:
        buffer - the content buffer
        offset - the offset within the buffer that content starts
        length - the length of the content
      • close

        void close()
        Notifies the reader that the end of the content was reached.
  • Summary:
  • Nested |
  • Field |
  • Constr |
  • Method
  • Detail:
  • Field |
  • Constr |
  • Method

AltStyle によって変換されたページ (->オリジナル) /