class PipelineImpl extends Object implements Pipeline
Modifier and Type | Field and Description |
---|---|
private static Logger |
__AVALON_LOGGER |
private static Logger |
__LOGGER |
private PipelineDescriptor |
_desc |
private TransformerHandler |
_firstHandler |
private List<InputStream> |
_is |
private TransformerHandler |
_lastHandler |
private OutputStream |
_out |
private SourceResolver |
_resolver |
private PipelineSerializer |
_serializer |
private List<Source> |
_sources |
Constructor and Description |
---|
PipelineImpl(PipelineDescriptor desc,
OutputStream out,
SourceResolver resolver) |
Modifier and Type | Method and Description |
---|---|
private void |
_checkExists(Source s,
String uri) |
private void |
_getTransformerHandler(SAXTransformerFactory stf) |
private TransformerHandler |
_newTransformerHandler(SAXTransformerFactory stf,
Source source) |
private void |
_release() |
void |
close() |
ContentHandler |
getHandler()
Prepare and gets the
ContentHandler for this pipeline. |
void |
serialize()
Serializes this pipeline.
|
private static final Logger __AVALON_LOGGER
private PipelineDescriptor _desc
private OutputStream _out
private SourceResolver _resolver
private List<InputStream> _is
private TransformerHandler _firstHandler
private TransformerHandler _lastHandler
private PipelineSerializer _serializer
PipelineImpl(PipelineDescriptor desc, OutputStream out, SourceResolver resolver)
public ContentHandler getHandler() throws Exception
Pipeline
ContentHandler
for this pipeline.getHandler
in interface Pipeline
ContentHandler
Exception
- if an error occuredprivate void _getTransformerHandler(SAXTransformerFactory stf)
private TransformerHandler _newTransformerHandler(SAXTransformerFactory stf, Source source) throws SourceNotFoundException, IOException, TransformerConfigurationException
private void _checkExists(Source s, String uri)
public void serialize() throws Exception
Pipeline
Pipeline.getHandler()
method must have been called before, and the ContentHandler
must no longer receive any event.
closed
.public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
IOException
private void _release() throws IOException
IOException