Package org.apache.commons.io.input
Class ProxyInputStream.AbstractBuilder<T,B extends AbstractStreamBuilder<T,B>>  
java.lang.Object
org.apache.commons.io.build.AbstractSupplier<T,B>
 
org.apache.commons.io.build.AbstractOriginSupplier<T,B>
 
org.apache.commons.io.build.AbstractStreamBuilder<T,B>
 
org.apache.commons.io.input.ProxyInputStream.AbstractBuilder<T,B> 
- Type Parameters:
- T- The InputStream type.
- B- The builder type.
- All Implemented Interfaces:
- IOSupplier<T>
- Direct Known Subclasses:
- AutoCloseInputStream.Builder,- BOMInputStream.Builder,- BoundedInputStream.Builder,- ChecksumInputStream.Builder,- ObservableInputStream.AbstractBuilder,- ThrottledInputStream.Builder
- Enclosing class:
- ProxyInputStream
protected abstract static class ProxyInputStream.AbstractBuilder<T,B extends AbstractStreamBuilder<T,B>>  
extends AbstractStreamBuilder<T,B> 
Abstracts builder properties for subclasses.
- Since:
- 2.18.0
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionGets theProxyInputStream.afterRead(int)consumer.setAfterRead(IOIntConsumer afterRead) Sets theProxyInputStream.afterRead(int)behavior, null resets to a NOOP.Methods inherited from class org.apache.commons.io.build.AbstractStreamBuildergetBufferSize, getBufferSizeDefault, getCharSequence, getCharset, getCharsetDefault, getFile, getInputStream, getOpenOptions, getOutputStream, getPath, getRandomAccessFile, getReader, getWriter, setBufferSize, setBufferSize, setBufferSizeChecker, setBufferSizeDefault, setBufferSizeMax, setCharset, setCharset, setCharsetDefault, setOpenOptionsMethods inherited from class org.apache.commons.io.build.AbstractOriginSuppliercheckOrigin, getOrigin, hasOrigin, newByteArrayOrigin, newCharSequenceOrigin, newFileOrigin, newFileOrigin, newInputStreamOrigin, newOutputStreamOrigin, newPathOrigin, newPathOrigin, newRandomAccessFileOrigin, newRandomAccessFileOrigin, newReaderOrigin, newURIOrigin, newWriterOrigin, setByteArray, setCharSequence, setFile, setFile, setInputStream, setOrigin, setOutputStream, setPath, setPath, setRandomAccessFile, setRandomAccessFile, setReader, setURI, setWriterMethods inherited from class org.apache.commons.io.build.AbstractSupplierasThisMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.commons.io.function.IOSupplierasSupplier, get, getUnchecked
- 
Constructor Details- 
AbstractBuilderprotected AbstractBuilder()Constructs a builder ofT.
 
- 
- 
Method Details- 
getAfterReadGets theProxyInputStream.afterRead(int)consumer.- Returns:
- the ProxyInputStream.afterRead(int)consumer.
 
- 
setAfterReadSets theProxyInputStream.afterRead(int)behavior, null resets to a NOOP.Setting this value causes the afterReadmethod to delegate to the given consumer.If a subclass overrides afterReadand does not callsuper.afterRead(int), then the given consumer is not called.This does not override a ProxyInputStreamsubclass' implementation of theProxyInputStream.afterRead(int)method, it can supplement it.- Parameters:
- afterRead- the- ProxyInputStream.afterRead(int)behavior.
- Returns:
- this instance.
 
 
-