|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.camunda.bpm.model.xml.impl.util.IoUtil
public final class IoUtil
| Constructor Summary | |
|---|---|
IoUtil()
|
|
| Method Summary | |
|---|---|
static void |
closeSilently(Closeable closeable)
|
static InputStream |
convertOutputStreamToInputStream(OutputStream outputStream)
Converts a OutputStream to an InputStream by coping the data directly. |
static String |
convertXmlDocumentToString(DomDocument document)
Converts a DomDocument to its String representation |
static String |
getStringFromInputStream(InputStream inputStream)
Convert an InputStream to a String |
static void |
transformDocumentToXml(DomDocument document,
StreamResult result)
Transforms a DomDocument to XML output. |
static void |
writeDocumentToOutputStream(DomDocument document,
OutputStream outputStream)
Writes a DomDocument to an OutputStream by transforming the DOM to XML. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public IoUtil()
| Method Detail |
|---|
public static void closeSilently(Closeable closeable)
public static String getStringFromInputStream(InputStream inputStream)
throws IOException
InputStream to a String
inputStream - the InputStream to convert
String
IOExceptionpublic static InputStream convertOutputStreamToInputStream(OutputStream outputStream)
OutputStream to an InputStream by coping the data directly.
WARNING: Do not use for large data (>100MB). Only for testing purpose.
outputStream - the OutputStream to convert
InputStreampublic static String convertXmlDocumentToString(DomDocument document)
DomDocument to its String representation
document - the XML document to convert
public static void writeDocumentToOutputStream(DomDocument document,
OutputStream outputStream)
DomDocument to an OutputStream by transforming the DOM to XML.
document - the DOM document to writeoutputStream - the OutputStream to write to
public static void transformDocumentToXml(DomDocument document,
StreamResult result)
DomDocument to XML output.
document - the DOM document to transformresult - the StreamResult to write to
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||