/[classpath]/inetlib/source/gnu/inet/http/ResponseBodyReader.java
ViewVC logotype

Diff of /inetlib/source/gnu/inet/http/ResponseBodyReader.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.2 by dog, Thu Oct 21 15:21:55 2004 UTC revision 1.3 by dog, Thu Nov 25 22:15:05 2004 UTC
# Line 1  Line 1 
1  /*  /*
2   * $Id$   * ResponseBodyReader.java
3   * Copyright (C) 2004 The Free Software Foundation   * Copyright (C) 2004 The Free Software Foundation
4   *   *
5   * This file is part of GNU inetlib, a library.   * This file is part of GNU inetlib, a library.
# Line 51  public interface ResponseBodyReader Line 51  public interface ResponseBodyReader
51     * If it returns false, it will not receive body content notifications for     * If it returns false, it will not receive body content notifications for
52     * that response.     * that response.
53     */     */
54    boolean accept (Request request, Response response);    boolean accept(Request request, Response response);
55    
56    /**    /**
57     * Receive notification of body content.     * Receive notification of body content.
# Line 59  public interface ResponseBodyReader Line 59  public interface ResponseBodyReader
59     * @param offset the offset within the buffer that content starts     * @param offset the offset within the buffer that content starts
60     * @param length the length of the content     * @param length the length of the content
61     */     */
62    void read (byte[] buffer, int offset, int length);    void read(byte[] buffer, int offset, int length);
63    
64    /**    /**
65     * Notifies the reader that the end of the content was reached.     * Notifies the reader that the end of the content was reached.
66     */     */
67    void close ();    void close();
68        
69  }  }
70    

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26