|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectdk.netarkivet.common.utils.StreamUtils
public class StreamUtils
Utilities for handling streams.
Constructor Summary | |
---|---|
StreamUtils()
|
Method Summary | |
---|---|
static void |
copyInputStreamToOutputStream(java.io.InputStream in,
java.io.OutputStream out)
Will copy everything from input stream to output stream, closing input stream afterwards. |
static void |
writeXmlToStream(org.dom4j.Document doc,
java.io.OutputStream os)
Write document tree to stream. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public StreamUtils()
Method Detail |
---|
public static void copyInputStreamToOutputStream(java.io.InputStream in, java.io.OutputStream out)
in
- Inputstream to copy fromout
- Outputstream to copy to
ArgumentNotValid
- if either parameter is null
IOFailure
- if a read or write error happens during copypublic static void writeXmlToStream(org.dom4j.Document doc, java.io.OutputStream os)
doc
- the document tree to save.os
- the stream to write xml to
IOFailure
- On trouble writing XML to stream.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |