public static class UnsynchronizedFilterInputStream.Builder extends AbstractStreamBuilder<UnsynchronizedFilterInputStream,UnsynchronizedFilterInputStream.Builder>
UnsynchronizedFilterInputStream
instance.
Using File IO:
UnsynchronizedFilterInputStream s = UnsynchronizedFilterInputStream.builder()
.setFile(file)
.get()
Using NIO Path:
UnsynchronizedFilterInputStream s = UnsynchronizedFilterInputStream.builder()
.setPath(path)
.get()
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
UnsynchronizedFilterInputStream |
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 UnsynchronizedFilterInputStream 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.