Class PdfPipelineSerializerModel.PdfPipelineSerializer
- java.lang.Object
-
- org.ametys.plugins.extraction.execution.pipeline.impl.AbstractSerializerImpl
-
- org.ametys.plugins.extraction.execution.pipeline.impl.PdfPipelineSerializerModel.PdfPipelineSerializer
-
- All Implemented Interfaces:
Closeable
,AutoCloseable
,PipelineSerializer
- Enclosing class:
- PdfPipelineSerializerModel
private static final class PdfPipelineSerializerModel.PdfPipelineSerializer extends AbstractSerializerImpl
-
-
Field Summary
Fields Modifier and Type Field Description private SourceResolver
_sourceResolver
private Path
_tmpFile
private OutputStream
_tmpFileOs
-
Fields inherited from class org.ametys.plugins.extraction.execution.pipeline.impl.AbstractSerializerImpl
_handler, _out, _streamResult
-
-
Constructor Summary
Constructors Constructor Description PdfPipelineSerializer(TransformerHandler handler, OutputStream out, SourceResolver sourceResolver)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
void
prepare()
Prepares this serializer.void
serialize()
Does the serialization.
-
-
-
Field Detail
-
_sourceResolver
private SourceResolver _sourceResolver
-
_tmpFileOs
private OutputStream _tmpFileOs
-
-
Constructor Detail
-
PdfPipelineSerializer
PdfPipelineSerializer(TransformerHandler handler, OutputStream out, SourceResolver sourceResolver)
-
-
Method Detail
-
prepare
public void prepare() throws Exception
Description copied from interface:PipelineSerializer
Prepares this serializer.- Specified by:
prepare
in interfacePipelineSerializer
- Overrides:
prepare
in classAbstractSerializerImpl
- Throws:
Exception
- if an error occured
-
serialize
public void serialize() throws Exception
Description copied from interface:PipelineSerializer
Does the serialization.PipelineSerializer.prepare()
method must have been called before.
Then, the pipeline must beclosed
.- Throws:
Exception
- if an error occured
-
close
public void close() throws IOException
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Overrides:
close
in classAbstractSerializerImpl
- Throws:
IOException
-
-