Class AbstractSerializerImpl
- java.lang.Object
-
- org.ametys.plugins.extraction.execution.pipeline.impl.AbstractSerializerImpl
-
- All Implemented Interfaces:
Closeable
,AutoCloseable
,PipelineSerializer
- Direct Known Subclasses:
PdfPipelineSerializerModel.PdfPipelineSerializer
,TextPipelineSerializerModel.TextPipelineSerializer
,XmlPipelineSerializerModel.XmlPipelineSerializer
abstract class AbstractSerializerImpl extends Object implements PipelineSerializer
-
-
Field Summary
Fields Modifier and Type Field Description protected TransformerHandler
_handler
protected OutputStream
_out
protected StreamResult
_streamResult
-
Constructor Summary
Constructors Constructor Description AbstractSerializerImpl(TransformerHandler handler, OutputStream out)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
void
prepare()
Prepares this serializer.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.ametys.plugins.extraction.execution.pipeline.impl.PipelineSerializer
serialize
-
-
-
-
Field Detail
-
_handler
protected TransformerHandler _handler
-
_out
protected OutputStream _out
-
_streamResult
protected StreamResult _streamResult
-
-
Constructor Detail
-
AbstractSerializerImpl
AbstractSerializerImpl(TransformerHandler handler, OutputStream out)
-
-
Method Detail
-
prepare
public void prepare() throws Exception
Description copied from interface:PipelineSerializer
Prepares this serializer.- Specified by:
prepare
in interfacePipelineSerializer
- Throws:
Exception
- if an error occured
-
close
public void close() throws IOException
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Throws:
IOException
-
-