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
-
Class Summary Class Description AbstractOrigin<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 java.io.RandomAccessFile,B extends AbstractOrigin.AbstractRandomAccessFileOrigin<T,B>> ARandomAccessFileorigin.AbstractOrigin.ByteArrayOrigin Abyte[]origin.AbstractOrigin.ChannelOrigin AChannelorigin.AbstractOrigin.CharSequenceOrigin ACharSequenceorigin.AbstractOrigin.FileOrigin AFileorigin.AbstractOrigin.InputStreamOrigin AnInputStreamorigin.AbstractOrigin.IORandomAccessFileOrigin AnIORandomAccessFileorigin.AbstractOrigin.OutputStreamOrigin AnOutputStreamorigin.AbstractOrigin.PathOrigin APathorigin.AbstractOrigin.RandomAccessFileOrigin ARandomAccessFileorigin.AbstractOrigin.ReaderOrigin AReaderorigin.AbstractOrigin.URIOrigin AURIorigin.AbstractOrigin.WriterOrigin 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.