com.sforce.ws.parser
Class XmlOutputStream

java.lang.Object
  extended by 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

Constructor Summary
XmlOutputStream(OutputStream out, boolean prettyPrint)
           
XmlOutputStream(OutputStream out, String prettyPrintIndentation)
           
 
Method Summary
 void close()
           
 void endDocument()
           
 void flush()
           
 String getPrefix(String namespace)
           
 Writer getWriter()
           
 void setPrefix(String prefix, String namespace)
           
 void startDocument()
           
 void writeAttribute(String namespace, String name, String value)
           
 void writeComment(String text)
           
 void writeEndTag(String namespace, String name)
           
 void writeStartTag(String namespace, String name)
           
 void writeStringElement(String namespace, String name, String content)
           
 void writeText(String text)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XmlOutputStream

public XmlOutputStream(OutputStream out,
                       boolean prettyPrint)
                throws IOException
Throws:
IOException

XmlOutputStream

public XmlOutputStream(OutputStream out,
                       String prettyPrintIndentation)
                throws IOException
Throws:
IOException
Method Detail

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.