public class ChunkedOutputStream extends FilterOutputStream
| Modifier and Type | Class and Description |
|---|---|
static class |
ChunkedOutputStream.Builder
Builds a new
UnsynchronizedByteArrayOutputStream instance. |
out| Constructor and Description |
|---|
ChunkedOutputStream(OutputStream stream)
Deprecated.
|
ChunkedOutputStream(OutputStream stream,
int chunkSize)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
static ChunkedOutputStream.Builder |
builder()
Constructs a new
ChunkedOutputStream.Builder. |
void |
write(byte[] data,
int srcOffset,
int length)
Writes the data buffer in chunks to the underlying stream
|
close, flush, write, write@Deprecated public ChunkedOutputStream(OutputStream stream)
builder(), ChunkedOutputStream.Builder, and ChunkedOutputStream.Builder.get()IOUtils.DEFAULT_BUFFER_SIZE.stream - the stream to wrap@Deprecated public ChunkedOutputStream(OutputStream stream, int chunkSize)
builder(), ChunkedOutputStream.Builder, and ChunkedOutputStream.Builder.get()stream - the stream to wrapchunkSize - the chunk size to use; must be a positive number.IllegalArgumentException - if the chunk size is <= 0public static ChunkedOutputStream.Builder builder()
ChunkedOutputStream.Builder.ChunkedOutputStream.Builder.public void write(byte[] data, int srcOffset, int length) throws IOException
write in class FilterOutputStreamdata - the data to writesrcOffset - the offsetlength - the length of data to writeIOException - if an I/O error occurs.Copyright © 2002–2023 The Apache Software Foundation. All rights reserved.