com.sforce.ws.parser
Class XmlOutputStream
java.lang.Object
com.sforce.ws.parser.XmlOutputStream
- Direct Known Subclasses:
- AsyncXmlOutputStream
public class XmlOutputStream
- extends Object
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
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
XmlOutputStream
public XmlOutputStream(OutputStream out,
boolean prettyPrint)
throws IOException
- Throws:
IOException
XmlOutputStream
public XmlOutputStream(OutputStream out,
String prettyPrintIndentation)
throws IOException
- Throws:
IOException
getPrefix
public String getPrefix(String namespace)
startDocument
public void startDocument()
throws IOException
- Throws:
IOException
endDocument
public void endDocument()
throws IOException
- Throws:
IOException
setPrefix
public void setPrefix(String prefix,
String namespace)
throws IOException
- Throws:
IOException
writeStartTag
public void writeStartTag(String namespace,
String name)
throws IOException
- Throws:
IOException
writeEndTag
public void writeEndTag(String namespace,
String name)
throws IOException
- Throws:
IOException
writeStringElement
public void writeStringElement(String namespace,
String name,
String content)
throws IOException
- Throws:
IOException
writeAttribute
public void writeAttribute(String namespace,
String name,
String value)
throws IOException
- Throws:
IOException
writeText
public void writeText(String text)
throws IOException
- Throws:
IOException
writeComment
public void writeComment(String text)
throws IOException
- Throws:
IOException
getWriter
public Writer getWriter()
flush
public void flush()
throws IOException
- Throws:
IOException
close
public void close()
throws IOException
- Throws:
IOException
Copyright © 2013. All Rights Reserved.