| Modifier and Type | Field and Description |
|---|---|
private static Properties |
__OUTPUT_FORMAT_PROPERTIES |
private static SAXTransformerFactory |
__transformerFactory |
| Modifier | Constructor and Description |
|---|---|
private |
Pipelines() |
| Modifier and Type | Method and Description |
|---|---|
static void |
close(StreamResult result)
Close the given stream result
|
static 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 a
SAXTransformerFactory |
static StreamResult |
setResult(TransformerHandler transformerHandler,
OutputStream outputStream)
Sets the result of a transformer handler into an output stream.
|
static void |
setStandardOutputProperties(TransformerHandler transformerHandler)
Sets standard output properties to the transformer of the given handler, such as encoding and indentation.
|
private static final Properties __OUTPUT_FORMAT_PROPERTIES
private static SAXTransformerFactory __transformerFactory
private Pipelines()
public static SAXTransformerFactory getSaxTransformerFactory()
SAXTransformerFactorySAXTransformerFactorypublic static void setStandardOutputProperties(TransformerHandler transformerHandler)
transformerHandler - The transformer handlerpublic static OutputStream getOutputStream(Path outputFile) throws IOException
outputFile - The output file. Will be created if needed.IOException - if an I/O error occuredpublic static StreamResult setResult(TransformerHandler transformerHandler, OutputStream outputStream) throws IOException
transformerHandler - The transformer handleroutputStream - The output streamIOException - if an I/O error occuredpublic static void close(StreamResult result)
result - the stream result