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.
(xmlContent - XML 文档。)
outStream
- The OutputStream in which the XML document will be written.
(outStream - 将写入 XML 文档的 OutputStream。)
public static boolean copyStream(java.io.InputStream inStream, java.io.OutputStream outStream)
inStream
- The source stream.
(inStream - 源流。)
outStream
- The destination stream.
(outStream - 目标流。)
Copyright 2021 The Apache Software Foundation or its licensors, as applicable.