public static class AutoCloseInputStream.Builder extends org.apache.commons.io.build.AbstractStreamBuilder<AutoCloseInputStream,AutoCloseInputStream.Builder>
AutoCloseInputStream
instance.
For example:
AutoCloseInputStream s = AutoCloseInputStream.builder()
.setPath(path)
.get();
AutoCloseInputStream s = AutoCloseInputStream.builder()
.setInputStream(inputStream)
.get();
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
AutoCloseInputStream |
get()
Constructs a new instance.
|
getCharset, setBufferSize, setBufferSize, setCharset, setCharset, setOpenOptions
setByteArray, setCharSequence, setFile, setFile, setInputStream, setOutputStream, setPath, setPath, setReader, setURI, setWriter
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
asSupplier
public AutoCloseInputStream get() throws java.io.IOException
This builder use the aspect InputStream.
java.io.IOException
- if an I/O error occurs.java.lang.IllegalArgumentException
- if the buffer is not large enough to hold a complete character.Copyright © 2010 - 2023 Adobe. All Rights Reserved