public class ChunkedOutputStream extends OutputStream
Constructor and Description |
---|
ChunkedOutputStream(OutputStream destination)
Convenience constructor to use a default chunk size size of 2048.
|
ChunkedOutputStream(OutputStream destination,
int chunkSize) |
Modifier and Type | Method and Description |
---|---|
void |
close()
Closes this output stream for writing but does not close the wrapped
stream.
|
void |
flush()
Writes the current chunk and flushes the wrapped stream.
|
void |
write(int b) |
write, write
public ChunkedOutputStream(OutputStream destination)
destination
- ChunkedOutputStream(OutputStream, int)
public ChunkedOutputStream(OutputStream destination, int chunkSize)
destination
- Outputstream to write chunked data tochunkSize
- Chunk sizepublic void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in class OutputStream
IOException
public void flush() throws IOException
flush
in interface Flushable
flush
in class OutputStream
IOException
public void write(int b) throws IOException
write
in class OutputStream
IOException
Copyright © 2005–2013. All rights reserved.