gnu.inet.http
Interface RequestBodyWriter
- ByteArrayRequestBodyWriter
public interface RequestBodyWriter
Callback interface for writing request body content.
- Chris Burdess
int | getContentLength() - Returns the total number of bytes that will be written in a single pass
by this writer.
|
void | reset() - Initialises the writer.
|
int | write(byte[] buffer) - Writes body content to the supplied buffer.
|
getContentLength
public int getContentLength()
Returns the total number of bytes that will be written in a single pass
by this writer.
reset
public void reset()
Initialises the writer.
This will be called before each pass.
write
public int write(byte[] buffer)
Writes body content to the supplied buffer.
buffer
- the content buffer
- the number of bytes written
© Copyright 2003 The Free Software Foundation,
all rights reserved