|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.io.OutputStream | +--org.apache.commons.httpclient.RequestOutputStream
OutputStream
wrapper supporting the chunked transfer encoding.
Constructor Summary | |
RequestOutputStream(java.io.OutputStream stream)
Deprecated. Use ChunkedOutputStream; |
|
RequestOutputStream(java.io.OutputStream stream,
boolean useChunking)
Deprecated. Use ChunkedOutputStream; |
Method Summary | |
void |
close()
Deprecated. Use ChunkedOutputStream; |
boolean |
isUseChunking()
Deprecated. Use ChunkedOutputStream; |
void |
print(java.lang.String s)
Deprecated. Use ChunkedOutputStream; |
void |
println()
Deprecated. Use ChunkedOutputStream; |
void |
println(java.lang.String s)
Deprecated. Use ChunkedOutputStream; |
void |
setUseChunking(boolean useChunking)
Deprecated. Use ChunkedOutputStream; |
void |
write(byte[] b,
int off,
int len)
Deprecated. Use ChunkedOutputStream; |
void |
write(int b)
Deprecated. Use ChunkedOutputStream; |
Methods inherited from class java.io.OutputStream |
flush,
write |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Constructor Detail |
public RequestOutputStream(java.io.OutputStream stream)
stream
- wrapped output stream. Must be non-null.public RequestOutputStream(java.io.OutputStream stream, boolean useChunking)
stream
- wrapped output stream. Must be non-null.useChunking
- when true
, the chunked transfer encoding
will be usedMethod Detail |
public void setUseChunking(boolean useChunking)
useChunking
- true if chunking is to be used, false otherwisepublic boolean isUseChunking()
public void print(java.lang.String s) throws java.io.IOException
String
to the client, without a carriage return
line feed (CRLF) character at the end.s
- the String
to send to the client. Must be non-null.public void println() throws java.io.IOException
public void println(java.lang.String s) throws java.io.IOException
String
to the client,
followed by a carriage return-line feed (CRLF).s
- the String to write to the clientpublic void write(int b) throws java.io.IOException
b
- The byte to be writtenpublic void write(byte[] b, int off, int len) throws java.io.IOException
b
- the byte array to write outoff
- the offset within b
to start writing fromlen
- the length of data within b
to writepublic void close() throws java.io.IOException
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |