Package org.apache.commons.io.build
Class AbstractOriginSupplier<T,B extends AbstractOriginSupplier<T,B>>
java.lang.Object
org.apache.commons.io.build.AbstractSupplier<T,B>
org.apache.commons.io.build.AbstractOriginSupplier<T,B>
- Type Parameters:
T- the type of instances to build.B- the type of builder subclass.
- All Implemented Interfaces:
IOSupplier<T>
- Direct Known Subclasses:
AbstractStreamBuilder
public abstract class AbstractOriginSupplier<T,B extends AbstractOriginSupplier<T,B>>
extends AbstractSupplier<T,B>
Abstracts building an instance of
T.- Since:
- 2.12.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionsetByteArray(byte[] origin) Sets a new origin.setCharSequence(CharSequence origin) Sets a new origin.Sets a new origin.Sets a new origin.setInputStream(InputStream origin) Sets a new origin.setOutputStream(OutputStream origin) Sets a new origin.Sets a new origin.Sets a new origin.Sets a new origin.Sets a new origin.Sets a new origin.Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.commons.io.function.IOSupplier
asSupplier, get
-
Constructor Details
-
AbstractOriginSupplier
public AbstractOriginSupplier()
-
-
Method Details
-
setByteArray
Sets a new origin.- Parameters:
origin- the new origin.- Returns:
- this
-
setCharSequence
Sets a new origin.- Parameters:
origin- the new origin.- Returns:
- this
- Since:
- 2.13.0
-
setFile
Sets a new origin.- Parameters:
origin- the new origin.- Returns:
- this
-
setFile
Sets a new origin.- Parameters:
origin- the new origin.- Returns:
- this
-
setInputStream
Sets a new origin.- Parameters:
origin- the new origin.- Returns:
- this
-
setOutputStream
Sets a new origin.- Parameters:
origin- the new origin.- Returns:
- this
-
setPath
Sets a new origin.- Parameters:
origin- the new origin.- Returns:
- this
-
setPath
Sets a new origin.- Parameters:
origin- the new origin.- Returns:
- this
-
setReader
Sets a new origin.- Parameters:
origin- the new origin.- Returns:
- this
-
setURI
Sets a new origin.- Parameters:
origin- the new origin.- Returns:
- this
-
setWriter
Sets a new origin.- Parameters:
origin- the new origin.- Returns:
- this
-