public final class StreamHelper
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static boolean |
copyStream(java.io.InputStream inStream,
java.io.OutputStream outStream)
Copy the input stream into the output stream.
|
static boolean |
saveXmlInStream(org.w3c.dom.Document xmlContent,
java.io.OutputStream outStream)
Save the document object in the specified output stream.
|
public static boolean saveXmlInStream(org.w3c.dom.Document xmlContent, java.io.OutputStream outStream)
xmlContent
- The XML document.outStream
- The OutputStream in which the XML document will be written.public static boolean copyStream(java.io.InputStream inStream, java.io.OutputStream outStream)
inStream
- The source stream.outStream
- The destination stream.Copyright 2022 The Apache Software Foundation or its licensors, as applicable.