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, getLogger
doInitialized, getInitializationState, initialize
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
wrapInputStream, wrapOutputStream
private 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()
AbstractComponent
initialization
. It is called when AbstractComponent.initialize()
is
invoked for the first time. super.
AbstractComponent.doInitialize()
.doInitialize
in class AbstractLoggableComponent
public DetectorInputStream wrapInputStream(InputStream stream)
DetectorStreamProvider
DetectorInputStream
that wrapps the given stream
.wrapInputStream
in interface DetectorStreamProvider
stream
- is the stream to wrap. This stream must be a fresh stream that is untouched since it was opened.public DetectorOutputStream wrapOutputStream(OutputStream stream)
DetectorStreamProvider
DetectorOutputStream
that wraps the given stream
.wrapOutputStream
in interface DetectorStreamProvider
stream
- 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.