|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.io.OutputStream
net.noderunner.http.ChunkedOutputStream
public class ChunkedOutputStream
An OutputStream
wrapper that supports the chunked transfer encoding.
ChunkedInputStream
Constructor Summary | |
---|---|
ChunkedOutputStream(java.io.OutputStream stream)
Constructs an output stream wrapping the given stream. |
Method Summary | |
---|---|
void |
close()
Closes this output stream, calling doneOutput once before closing. |
void |
doneOutput()
This method differs from close as it merely writes the
final chunk and does not close the underlying output stream. |
void |
flush()
Flushes this output stream. |
java.lang.String |
toString()
|
void |
write(byte[] b)
Writes the specified byte array. |
void |
write(byte[] b,
int off,
int len)
Writes the specified byte array. |
void |
write(int b)
Writes the specified byte to the output stream. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ChunkedOutputStream(java.io.OutputStream stream)
stream
- wrapped output stream. Must be non-null.Method Detail |
---|
public void write(int b) throws java.io.IOException
write
in class java.io.OutputStream
b
- The byte to be written
java.io.IOException
- if an input/output error occurspublic void write(byte[] b) throws java.io.IOException
write
in class java.io.OutputStream
java.io.IOException
public void write(byte[] b, int off, int len) throws java.io.IOException
write
in class java.io.OutputStream
java.io.IOException
public void flush() throws java.io.IOException
flush
in interface java.io.Flushable
flush
in class java.io.OutputStream
java.io.IOException
public void doneOutput() throws java.io.IOException
close
as it merely writes the
final chunk and does not close the underlying output stream.
This has no effect if this method was called already.
java.io.IOException
public void close() throws java.io.IOException
doneOutput
once before closing.
close
in interface java.io.Closeable
close
in class java.io.OutputStream
java.io.IOException
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |