public final class StreamProcessor extends BaseStreamProcessor
| Modifier and Type | Field and Description |
|---|---|
static String |
ENABLE_ERROR_RECOVERY
Used as a key with
setProperty(String, Object) method. |
static String |
PROCESSOR_GRAPH_HANDLER_PROPERTY
Used as a key with
setProperty(String, Object) method. |
static String |
XML_READER_PROPERTY
Used as a key with
setProperty(String, Object) method. |
| Constructor and Description |
|---|
StreamProcessor(DataSink sink)
Instantiates stream processor for pipe starting with specified sink.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
endStream() |
void |
processInternal(InputStream inputStream,
String mimeType,
String baseUri) |
void |
processInternal(Reader reader,
String mimeType,
String baseUri) |
boolean |
setProperty(String key,
Object value)
Key-value based settings.
|
protected void |
startStream() |
createSourceForSink, process, process, process, process, process, process, process, processpublic static final String XML_READER_PROPERTY
setProperty(String, Object) method.
Allows to specify custom XMLReader used with SAX parsers.public static final String ENABLE_ERROR_RECOVERY
setProperty(String, Object) method.
Enables or disables error recovery mechanism.public static final String PROCESSOR_GRAPH_HANDLER_PROPERTY
setProperty(String, Object) method.
Allows to specify handler for processor events.
Subclass of ProcessorGraphHandler must be passed as a value.public StreamProcessor(DataSink sink)
sink - pipe's inputpublic void processInternal(InputStream inputStream, String mimeType, String baseUri) throws ParseException
processInternal in class BaseStreamProcessorParseExceptionprotected void startStream()
throws ParseException
startStream in class BaseStreamProcessorParseExceptionprotected void endStream()
throws ParseException
endStream in class BaseStreamProcessorParseExceptionpublic void processInternal(Reader reader, String mimeType, String baseUri) throws ParseException
processInternal in class BaseStreamProcessorParseExceptionpublic boolean setProperty(String key, Object value)
BaseStreamProcessorsetProperty in class BaseStreamProcessorkey - property keyvalue - property valueCopyright © 2012–2016. All rights reserved.