public static class UnsynchronizedBufferedInputStream.Builder extends AbstractStreamBuilder<UnsynchronizedBufferedInputStream,UnsynchronizedBufferedInputStream.Builder>
UnsynchronizedBufferedInputStream
instance.
Using File IO:
UnsynchronizedBufferedInputStream s = UnsynchronizedBufferedInputStream.builder()
.setFile(file)
.setBufferSize(8192)
.get()
Using NIO Path:
UnsynchronizedBufferedInputStream s = UnsynchronizedBufferedInputStream.builder()
.setPath(path)
.setBufferSize(8192)
.get()
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
UnsynchronizedBufferedInputStream |
get()
Constructs a new instance.
|
getBufferSize, getBufferSizeDefault, getCharset, getCharsetDefault, setBufferSize, setBufferSize, setBufferSizeDefault, setCharset, setCharset, setCharsetDefault
checkOrigin, getOrigin, hasOrigin, newByteArrayOrigin, newFileOrigin, newFileOrigin, newInputStreamOrigin, newOutputStreamOrigin, newPathOrigin, newPathOrigin, newReaderOrigin, newURIOrigin, newWriterOrigin, setByteArray, setFile, setFile, setInputStream, setOrigin, setOutputStream, setPath, setPath, setReader, setURI, setWriter
asThis
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
asSupplier
public Builder()
public UnsynchronizedBufferedInputStream get() throws IOException
UnsupportedOperationException
- if the origin cannot be converted to an InputStream.IOException
- if an I/O error occurs.Copyright © 2002–2023 The Apache Software Foundation. All rights reserved.