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. |
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. |
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 |
|
|