Class UnsynchronizedByteArrayOutputStream.Builder
java.lang.Object
org.apache.commons.io.build.AbstractSupplier<UnsynchronizedByteArrayOutputStream, UnsynchronizedByteArrayOutputStream.Builder>
org.apache.commons.io.build.AbstractOriginSupplier<UnsynchronizedByteArrayOutputStream, UnsynchronizedByteArrayOutputStream.Builder>
org.apache.commons.io.build.AbstractStreamBuilder<UnsynchronizedByteArrayOutputStream, UnsynchronizedByteArrayOutputStream.Builder>
org.apache.commons.io.output.UnsynchronizedByteArrayOutputStream.Builder
- All Implemented Interfaces:
IOSupplier<UnsynchronizedByteArrayOutputStream>
- Enclosing class:
UnsynchronizedByteArrayOutputStream
public static class UnsynchronizedByteArrayOutputStream.Builder
extends AbstractStreamBuilder<UnsynchronizedByteArrayOutputStream, UnsynchronizedByteArrayOutputStream.Builder>
Builds a new
UnsynchronizedByteArrayOutputStream.
Using File IO:
UnsynchronizedByteArrayOutputStream s = UnsynchronizedByteArrayOutputStream.builder()
.setBufferSize(8192)
.get();
Using NIO Path:
UnsynchronizedByteArrayOutputStream s = UnsynchronizedByteArrayOutputStream.builder()
.setBufferSize(8192)
.get();
- Since:
- 2.7
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class AbstractStreamBuilder
getBufferSize, getBufferSizeDefault, getChannel, getCharSequence, getCharset, getCharsetDefault, getFile, getInputStream, getOpenOptions, getOutputStream, getPath, getRandomAccessFile, getReader, getWriter, setBufferSize, setBufferSize, setBufferSizeChecker, setBufferSizeDefault, setBufferSizeMax, setCharset, setCharset, setCharsetDefault, setOpenOptionsMethods inherited from class AbstractOriginSupplier
checkOrigin, getOrigin, hasOrigin, newByteArrayOrigin, newChannelOrigin, newCharSequenceOrigin, newFileOrigin, newFileOrigin, newInputStreamOrigin, newOutputStreamOrigin, newPathOrigin, newPathOrigin, newRandomAccessFileOrigin, newRandomAccessFileOrigin, newReaderOrigin, newURIOrigin, newWriterOrigin, setByteArray, setChannel, setCharSequence, setFile, setFile, setInputStream, setOrigin, setOutputStream, setPath, setPath, setRandomAccessFile, setRandomAccessFile, setReader, setURI, setWriterMethods inherited from class AbstractSupplier
asThisMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface IOSupplier
asSupplier, getUnchecked
-
Constructor Details
-
Builder
public Builder()Constructs a new builder ofUnsynchronizedByteArrayOutputStream.
-
-
Method Details
-
get
Builds a newUnsynchronizedByteArrayOutputStream.This builder uses the following aspects:
- Returns:
- a new instance.
- See Also:
-