Class Pipelines
- java.lang.Object
-
- org.ametys.plugins.extraction.execution.pipeline.Pipelines
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static 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
getSaxTransformerFactory()
Gets aSAXTransformerFactory
static StreamResult
setResult(TransformerHandler transformerHandler, OutputStream outputStream)
Sets the result of a transformer handler into an output stream.
-
-
-
Method Detail
-
getSaxTransformerFactory
public static SAXTransformerFactory getSaxTransformerFactory()
Gets aSAXTransformerFactory
- Returns:
- a
SAXTransformerFactory
-
getOutputStream
public static OutputStream getOutputStream(Path outputFile) throws IOException
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
public static void close(StreamResult result)
Close the given stream result- Parameters:
result
- the stream result
-
-