public abstract class AbstractDetectorStreamProvider extends AbstractLoggableComponent implements DetectorStreamProvider
DetectorStreamProvider.| Modifier and Type | Field and Description |
|---|---|
private ByteArrayPool |
byteArrayPool |
private List<DetectorStreamProcessorFactory> |
processorFactoryList |
| Constructor and Description |
|---|
AbstractDetectorStreamProvider()
The constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addProcessorFactory(DetectorStreamProcessorFactory processorFactory)
This method registers a
DetectorStreamProcessorFactory to this DetectorStreamProvider. |
protected void |
doInitialize()
This method performs the actual
initialization. |
ByteArrayPool |
getByteArrayPool()
This method gets the
ByteArrayPool used to borrow byte-arrays. |
List<DetectorStreamProcessorFactory> |
getProcessorFactoryList()
|
void |
setByteArrayPool(ByteArrayPool byteArrayPool)
This method sets the
ByteArrayPool to use. |
void |
setProcessorFactoryList(List<DetectorStreamProcessorFactory> processorFactoryList)
This method sets the complete
List of DetectorStreamProcessorFactory-instances. |
DetectorInputStream |
wrapInputStream(InputStream stream)
This method gets a
DetectorInputStream that wrapps the given stream. |
DetectorOutputStream |
wrapOutputStream(OutputStream stream)
This method gets a
DetectorOutputStream that wraps the given stream. |
createLogger, getLoggerdoInitialized, getInitializationState, initializeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitwrapInputStream, wrapOutputStreamprivate List<DetectorStreamProcessorFactory> processorFactoryList
private ByteArrayPool byteArrayPool
public AbstractDetectorStreamProvider()
public List<DetectorStreamProcessorFactory> getProcessorFactoryList()
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()
AbstractComponentinitialization. It is called when AbstractComponent.initialize() is
invoked for the first time. super.AbstractComponent.doInitialize().doInitialize in class AbstractLoggableComponentpublic DetectorInputStream wrapInputStream(InputStream stream)
DetectorStreamProviderDetectorInputStream 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)
DetectorStreamProviderDetectorOutputStream 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.Copyright © 2001–2016 mmm-Team. All rights reserved.