Package org.apache.poi.openxml4j.opc
Class StreamHelper
java.lang.Object
org.apache.poi.openxml4j.opc.StreamHelper
-
Method Summary
Modifier and TypeMethodDescriptionstatic booleancopyStream(InputStream inStream, OutputStream outStream) Copy the input stream into the output stream.static booleansaveXmlInStream(Document xmlContent, OutputStream outStream) Save the document object in the specified output stream.
-
Method Details
-
saveXmlInStream
Save the document object in the specified output stream.- Parameters:
xmlContent- The XML document.outStream- The OutputStream in which the XML document will be written.- Returns:
- true if the xml is successfully written in the stream, else false.
-
copyStream
Copy the input stream into the output stream.- Parameters:
inStream- The source stream.outStream- The destination stream.- Returns:
- true if the operation succeed, else return false.
-