T - the type of instances to build.B - the type of builder subclass.public abstract class AbstractStreamBuilder<T,B extends AbstractStreamBuilder<T,B>> extends AbstractOriginSupplier<T,B>
T.| Constructor and Description |
|---|
AbstractStreamBuilder() |
| Modifier and Type | Method and Description |
|---|---|
java.nio.charset.Charset |
getCharset()
Gets the Charset, defaults to
Charset.defaultCharset(). |
B |
setBufferSize(int bufferSize)
Sets the buffer size.
|
B |
setBufferSize(java.lang.Integer bufferSize)
Sets the buffer size.
|
B |
setBufferSizeChecker(java.util.function.IntUnaryOperator bufferSizeChecker)
Sets the buffer size checker function.
|
B |
setBufferSizeMax(int bufferSizeMax)
The maximum buffer size checked by the buffer size checker.
|
B |
setCharset(java.nio.charset.Charset charset)
Sets the Charset.
|
B |
setCharset(java.lang.String charset)
Sets the Charset.
|
B |
setOpenOptions(java.nio.file.OpenOption... openOptions)
Sets the OpenOption[].
|
setByteArray, setCharSequence, setFile, setFile, setInputStream, setOutputStream, setPath, setPath, setReader, setURI, setWriterequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitasSupplier, getpublic java.nio.charset.Charset getCharset()
Charset.defaultCharset().Charset.defaultCharset().public B setBufferSize(int bufferSize)
Subclasses may ignore this setting.
bufferSize - the buffer size.public B setBufferSize(java.lang.Integer bufferSize)
Subclasses may ignore this setting.
bufferSize - the buffer size, null resets to the default.public B setBufferSizeChecker(java.util.function.IntUnaryOperator bufferSizeChecker)
IllegalArgumentException by default.bufferSizeChecker - the buffer size checker function. null resets to the default behavior.public B setBufferSizeMax(int bufferSizeMax)
IllegalArgumentException.bufferSizeMax - maximum buffer size checked by the buffer size checker.public B setCharset(java.nio.charset.Charset charset)
Subclasses may ignore this setting.
charset - the Charset, null resets to the default.public B setCharset(java.lang.String charset)
Subclasses may ignore this setting.
charset - the Charset name, null resets to the default.public B setOpenOptions(java.nio.file.OpenOption... openOptions)
Normally used with InputStream, OutputStream, and Writer.
Subclasses may ignore this setting.
openOptions - the OpenOption[] name, null resets to the default.AbstractOriginSupplier.setInputStream(InputStream),
AbstractOriginSupplier.setOutputStream(OutputStream),
AbstractOriginSupplier.setWriter(Writer)Copyright © 2010 - 2024 Adobe. All Rights Reserved