Class Pipelines
java.lang.Object
org.ametys.plugins.extraction.execution.pipeline.Pipelines
Convenient method for
Pipeline
API implementations-
Method Summary
Modifier and TypeMethodDescriptionstatic void
close
(StreamResult result) Close the given stream resultstatic OutputStream
getOutputStream
(Path outputFile) Gets the output stream of the given file (which will be created if it does not exist).static SAXTransformerFactory
Gets aSAXTransformerFactory
static StreamResult
setResult
(TransformerHandler transformerHandler, OutputStream outputStream) Sets the result of a transformer handler into an output stream.
-
Method Details
-
getSaxTransformerFactory
Gets aSAXTransformerFactory
- Returns:
- a
SAXTransformerFactory
-
getOutputStream
Gets the output stream of the given file (which will be created if it does not exist).- Parameters:
outputFile
- The output file. Will be created if needed.- Returns:
- the output stream
- Throws:
IOException
- if an I/O error occured
-
setResult
public static StreamResult setResult(TransformerHandler transformerHandler, OutputStream outputStream) throws IOException Sets the result of a transformer handler into an output stream.- Parameters:
transformerHandler
- The transformer handleroutputStream
- The output stream- Returns:
- the stream result
- Throws:
IOException
- if an I/O error occured
-
close
Close the given stream result- Parameters:
result
- the stream result
-