|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.mmm.util.component.base.AbstractComponent
net.sf.mmm.util.component.base.AbstractLoggableComponent
net.sf.mmm.util.io.base.AbstractDetectorStreamProvider
public abstract class AbstractDetectorStreamProvider
This is the abstract base implementation of the
DetectorStreamProvider.
| Field Summary | |
|---|---|
private ByteArrayPool |
byteArrayPool
|
private List<DetectorStreamProcessorFactory> |
processorFactoryList
|
| Constructor Summary | |
|---|---|
AbstractDetectorStreamProvider()
The constructor. |
|
| Methods inherited from class net.sf.mmm.util.component.base.AbstractLoggableComponent |
|---|
getLogger, setLogger |
| Methods inherited from class net.sf.mmm.util.component.base.AbstractComponent |
|---|
doInitialized, getInitializationState, initialize |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface net.sf.mmm.util.io.api.DetectorStreamProvider |
|---|
wrapInputStream, wrapOutputStream |
| Field Detail |
|---|
private List<DetectorStreamProcessorFactory> processorFactoryList
getProcessorFactoryList()private ByteArrayPool byteArrayPool
getByteArrayPool()| Constructor Detail |
|---|
public AbstractDetectorStreamProvider()
| Method Detail |
|---|
public List<DetectorStreamProcessorFactory> getProcessorFactoryList()
List of
registered
DetectorStreamProcessorFactory-instances.
public void addProcessorFactory(DetectorStreamProcessorFactory processorFactory)
DetectorStreamProcessorFactory to this
DetectorStreamProvider.
processorFactory - is the DetectorStreamProcessorFactory to
add.setProcessorFactoryList(List)public void setProcessorFactoryList(List<DetectorStreamProcessorFactory> processorFactoryList)
List of
DetectorStreamProcessorFactory-instances. Do NOT call this method
after addProcessorFactory(DetectorStreamProcessorFactory) has been
called.
processorFactoryList - is the complete List of
DetectorStreamProcessorFactory-instances to set.@Inject public void setByteArrayPool(ByteArrayPool byteArrayPool)
ByteArrayPool to use.
byteArrayPool - is the ByteArrayPool to set.public ByteArrayPool getByteArrayPool()
ByteArrayPool used to
borrow byte-arrays.
ByteArrayPool.protected void doInitialize()
initialization. It is
called when AbstractComponent.initialize() is invoked for the first time.super.AbstractComponent.doInitialize().
doInitialize in class AbstractLoggableComponentpublic DetectorInputStream wrapInputStream(InputStream stream)
DetectorInputStream that wrapps the given
stream.
wrapInputStream in interface DetectorStreamProviderstream - is the stream to wrap. This stream must be a fresh stream
that is untouched since it was opened.
public DetectorOutputStream wrapOutputStream(OutputStream stream)
DetectorOutputStream that wraps the given
stream.
wrapOutputStream in interface DetectorStreamProviderstream - is the stream to wrap. This stream must be a fresh stream
that is untouched since it was opened.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||