public static class ChunkedOutputStream.Builder extends org.apache.commons.io.build.AbstractStreamBuilder<ChunkedOutputStream,ChunkedOutputStream.Builder>
UnsynchronizedByteArrayOutputStream
instance.
Using File IO:
UnsynchronizedByteArrayOutputStream s = UnsynchronizedByteArrayOutputStream.builder()
.setBufferSize(8192)
.get();
Using NIO Path:
UnsynchronizedByteArrayOutputStream s = UnsynchronizedByteArrayOutputStream.builder()
.setBufferSize(8192)
.get();
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
ChunkedOutputStream |
get()
Constructs a new instance.
|
getCharset, setBufferSize, setBufferSize, setCharset, setCharset, setOpenOptions
setByteArray, setCharSequence, setFile, setFile, setInputStream, setOutputStream, setPath, setPath, setReader, setURI, setWriter
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
asSupplier
public ChunkedOutputStream get() throws java.io.IOException
This builder use the aspects OutputStream and buffer size (chunk size).
java.io.IOException
- if an I/O error occurs.java.lang.UnsupportedOperationException
- if the origin cannot be converted to an OututStream.AbstractStreamBuilder.getOutputStream()
Copyright © 2010 - 2023 Adobe. All Rights Reserved