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, getCharSequence, getCharset, getCharsetDefault, getInputStream, getOpenOptions, getOutputStream, getPath, getWriter, setBufferSize, setBufferSize, setBufferSizeDefault, setCharset, setCharset, setCharsetDefault, setOpenOptions
checkOrigin, getOrigin, hasOrigin, newByteArrayOrigin, newCharSequenceOrigin, newFileOrigin, newFileOrigin, newInputStreamOrigin, newOutputStreamOrigin, newPathOrigin, newPathOrigin, newReaderOrigin, newURIOrigin, newWriterOrigin, setByteArray, setCharSequence, 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
This builder use the aspect InputStream and OpenOption[].
You must provide an origin that can be converted to an InputStream by this builder, otherwise, this call will throw an
UnsupportedOperationException
.
UnsupportedOperationException
- if the origin cannot provide an InputStream.IOException
- if an I/O error occurs.AbstractStreamBuilder.getInputStream()
Copyright © 2002–2023 The Apache Software Foundation. All rights reserved.