public class ChunkedWriter extends FilterWriter
out
Constructor and Description |
---|
ChunkedWriter(Writer writer)
Creates a new writer that uses a chunk size of
DEFAULT_CHUNK_SIZE |
ChunkedWriter(Writer writer,
int chunkSize)
Creates a new writer that uses the specified chunk size.
|
public ChunkedWriter(Writer writer, int chunkSize)
writer
- the writer to wrapchunkSize
- the chunk size to use; must be a positive number.IllegalArgumentException
- if the chunk size is <= 0public ChunkedWriter(Writer writer)
DEFAULT_CHUNK_SIZE
writer
- the writer to wrappublic void write(char[] data, int srcOffset, int length) throws IOException
write
in class FilterWriter
data
- The datasrcOffset
- the offsetlength
- the number of bytes to writeIOException
- upon errorCopyright © 2002–2016 The Apache Software Foundation. All rights reserved.