public class DetectorStreamProviderImpl extends AbstractDetectorStreamProvider
DetectorStreamProvider
interface.Constructor and Description |
---|
DetectorStreamProviderImpl()
The constructor.
|
Modifier and Type | Method and Description |
---|---|
DetectorInputStream |
wrapInputStream(InputStream stream,
Map<String,Object> metadata)
This method gets a
DetectorInputStream that wraps the given stream . |
DetectorOutputStream |
wrapOutputStream(OutputStream stream,
Map<String,Object> metadata)
This method gets a
DetectorOutputStream that wraps the given stream . |
addProcessorFactory, doInitialize, getByteArrayPool, getProcessorFactoryList, setByteArrayPool, setProcessorFactoryList, wrapInputStream, wrapOutputStream
createLogger, getLogger
doInitialized, getInitializationState, initialize
public DetectorInputStream wrapInputStream(InputStream stream, Map<String,Object> metadata)
DetectorStreamProvider
DetectorInputStream
that wraps the given stream
. In addition to
DetectorStreamProvider.wrapInputStream(InputStream)
an additional parameter metadata
is supplied. If this context
contains metadata values, that are mutable, the stream wrapper manipulates the data such that the given values
correspond to the data. metadata
. metadata
.stream
- is the stream to wrap. This stream must be a fresh stream that is untouched since it was opened.metadata
- is the existing metadata to apply.public DetectorOutputStream wrapOutputStream(OutputStream stream, Map<String,Object> metadata)
DetectorStreamProvider
DetectorOutputStream
that wraps the given stream
. In addition to
DetectorStreamProvider.wrapOutputStream(OutputStream)
an additional parameter metadata
is supplied. If this context
contains metadata values, that are mutable, the stream wrapper manipulates the data such that the given values
correspond to the data. metadata
. metadata
.stream
- is the stream to wrap. This stream must be a fresh stream that is untouched since it was opened.metadata
- is the existing metadata to apply.Copyright © 2001–2016 mmm-Team. All rights reserved.