Package com.sforce.ws.parser
Class XmlOutputStream
java.lang.Object
com.sforce.ws.parser.XmlOutputStream
- All Implemented Interfaces:
AutoCloseable
- Direct Known Subclasses:
AsyncXmlOutputStream
This is a minimal XML output stream, that can be used to write XML.
- Since:
- 1.0 Nov 30, 2005
- Version:
- 1.0
- Author:
- http://cheenath.com
-
Constructor Summary
ConstructorsConstructorDescriptionXmlOutputStream(OutputStream out, boolean prettyPrint) XmlOutputStream(OutputStream out, String prettyPrintIndentation) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()voidvoidflush()voidvoidvoidwriteAttribute(String namespace, String name, String value) voidwriteComment(String text) voidwriteEndTag(String namespace, String name) voidwriteStartTag(String namespace, String name) voidwriteStringElement(String namespace, String name, String content) void
-
Constructor Details
-
XmlOutputStream
- Throws:
IOException
-
XmlOutputStream
- Throws:
IOException
-
-
Method Details
-
getPrefix
-
startDocument
- Throws:
IOException
-
endDocument
- Throws:
IOException
-
setPrefix
- Throws:
IOException
-
writeStartTag
- Throws:
IOException
-
writeEndTag
- Throws:
IOException
-
writeStringElement
- Throws:
IOException
-
writeAttribute
- Throws:
IOException
-
writeText
- Throws:
IOException
-
writeComment
- Throws:
IOException
-
getWriter
-
flush
- Throws:
IOException
-
close
- Specified by:
closein interfaceAutoCloseable- Throws:
IOException
-