Package org.apache.commons.io.build
package org.apache.commons.io.build
Provides classes to implement the builder pattern for IO classes.
The main classes in this package are (indentation reflects hierarchy):
- The root class AbstractSupplier abstracts supplying an instance of type
TwhereTis unbounded. This class carries no state.- AbstractOrigin extends AbstractSupplier
to abstract and wrap an origin for builders, where an origin is a
byte[], Channel, CharSequence, File, InputStream, IORandomAccessFile, OutputStream, Path, RandomAccessFile, Reader, URI, or Writer. - AbstractOriginSupplier extends AbstractSupplier to abstract building an instance of type
TwhereTis unbounded from a wrapped origin.- AbstractStreamBuilder extends
AbstractOriginSupplier to abstract building a typed instance of type
TwhereTis unbounded. This class contains various properties like a buffer size, buffer size checker, a buffer size default, buffer size maximum, Charset, Charset default, default size checker, and open options. A subclass may use all, some, or none of these properties in building instances ofT.
- AbstractStreamBuilder extends
AbstractOriginSupplier to abstract building a typed instance of type
- AbstractOrigin extends AbstractSupplier
to abstract and wrap an origin for builders, where an origin is a
- Since:
- 2.12.0
-
ClassesClassDescriptionAbstractOrigin<T,
B extends AbstractOrigin<T, B>> Abstracts and wraps an origin for builders, where an origin is abyte[],Channel,CharSequence,File,InputStream,IORandomAccessFile,OutputStream,Path,RandomAccessFile,Reader,URI, orWriter.AbstractOrigin.AbstractRandomAccessFileOrigin<T extends RandomAccessFile,B extends AbstractOrigin.AbstractRandomAccessFileOrigin<T, B>> ARandomAccessFileorigin.Abyte[]origin.AChannelorigin.ACharSequenceorigin.AFileorigin.AnInputStreamorigin.AnIORandomAccessFileorigin.AnOutputStreamorigin.APathorigin.ARandomAccessFileorigin.AReaderorigin.AURIorigin.AWriterorigin.AbstractOriginSupplier<T,B extends AbstractOriginSupplier<T, B>> AbstractStreamBuilder<T,B extends AbstractStreamBuilder<T, B>> Abstracts building a typed instance of typeTwhereTis unbounded.AbstractSupplier<T,B extends AbstractSupplier<T, B>> Abstracts supplying an instance of typeTwhereTis unbounded.