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.
|
| Modifier and Type | Method and Description |
|---|---|
void |
write(char[] data,
int srcOffset,
int length)
writes the data buffer in chunks to the underlying writer
|
close, flush, write, writepublic 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_SIZEwriter - the writer to wrappublic void write(char[] data,
int srcOffset,
int length)
throws IOException
write in class FilterWriterdata - The datasrcOffset - the offsetlength - the number of bytes to writeIOException - upon errorCopyright © 2002–2021 The Apache Software Foundation. All rights reserved.