1 |
/* |
/* |
2 |
* $Id$ |
* RequestBodyWriter.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. |
50 |
* Returns the total number of bytes that will be written in a single pass |
* Returns the total number of bytes that will be written in a single pass |
51 |
* by this writer. |
* by this writer. |
52 |
*/ |
*/ |
53 |
int getContentLength (); |
int getContentLength(); |
54 |
|
|
55 |
/** |
/** |
56 |
* Initialises the writer. |
* Initialises the writer. |
57 |
* This will be called before each pass. |
* This will be called before each pass. |
58 |
*/ |
*/ |
59 |
void reset (); |
void reset(); |
60 |
|
|
61 |
/** |
/** |
62 |
* Writes body content to the supplied buffer. |
* Writes body content to the supplied buffer. |
63 |
* @param buffer the content buffer |
* @param buffer the content buffer |
64 |
* @return the number of bytes written |
* @return the number of bytes written |
65 |
*/ |
*/ |
66 |
int write (byte[] buffer); |
int write(byte[] buffer); |
67 |
|
|
68 |
} |
} |
69 |
|
|