org.eclipse.net4j.util.io
Class XMLOutput

java.lang.Object
  extended by org.eclipse.net4j.util.io.XMLOutput

public class XMLOutput
extends Object

Since:
3.1

Constructor Summary
XMLOutput(OutputStream out)
           
 
Method Summary
 XMLOutput attribute(String name, Object value)
           
 XMLOutput attributeOrNull(String name, Object value)
           
 OutputStream bytes()
           
 Writer characters()
           
 void done()
           
 XMLOutput element(String name)
           
 XMLOutput pop()
           
 XMLOutput push()
           
 void setIndentation(String indentation)
           
 void setNewLine(String newLine)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XMLOutput

public XMLOutput(OutputStream out)
          throws TransformerConfigurationException,
                 SAXException
Throws:
TransformerConfigurationException
SAXException
Method Detail

setNewLine

public void setNewLine(String newLine)

setIndentation

public void setIndentation(String indentation)

element

public XMLOutput element(String name)
                  throws SAXException
Throws:
SAXException

attribute

public XMLOutput attribute(String name,
                           Object value)
                    throws SAXException
Throws:
SAXException

attributeOrNull

public XMLOutput attributeOrNull(String name,
                                 Object value)
                          throws SAXException
Throws:
SAXException

characters

public Writer characters()
                  throws SAXException
Throws:
SAXException

bytes

public OutputStream bytes()
                   throws SAXException
Throws:
SAXException

push

public XMLOutput push()
               throws SAXException
Throws:
SAXException

pop

public XMLOutput pop()
              throws SAXException
Throws:
SAXException

done

public void done()
          throws SAXException
Throws:
SAXException


Copyright (c) 2011, 2012 Eike Stepper (Berlin, Germany) and others.