XMLOutputter

package org.jdom.output;

public class XMLOutputter implements Cloneable {

    public XMLOutputter()
    public XMLOutputter(String indent)
    public XMLOutputter(String indent, boolean newlines)
    public XMLOutputter(String indent, boolean newlines, String encoding)
    public XMLOutputter(XMLOutputter that)
    
    public void setLineSeparator(String separator)
    public void setNewlines(boolean newlines)
    public void setEncoding(String encoding)
    public void setOmitEncoding(boolean omitEncoding)
    public void setOmitDeclaration(boolean omitDeclaration)
    public void setExpandEmptyElements(boolean expandEmptyElements)
    public void setIndent(String indent)
    
    public void setTrimAllWhite(boolean trimAllWhite)
    public void setTextTrim(boolean textTrim)
    public void setTextNormalize(boolean textNormalize)

    protected String escapeAttributeEntities(String s) 
    protected String escapeElementEntities(String s)

    protected void indent(Writer out, int level) throws IOException
    protected Writer makeWriter(OutputStream out) 
     throws java.io.UnsupportedEncodingException
    protected Writer makeWriter(OutputStream out, String encoding) 
     throws java.io.UnsupportedEncodingException
    protected XMLOutputter.NamespaceStack createNamespaceStack()

    public void output(Document doc, OutputStream out) throws IOException
    public void output(Document doc, Writer writer) throws IOException
    public void output(Element element, Writer out) throws IOException
    public void output(Element element, OutputStream out)
    public void output(CDATA cdata, Writer out) throws IOException
    public void output(CDATA cdata, OutputStream out) throws IOException
    public void output(Comment comment, Writer out) throws IOException
    public void output(Comment comment, OutputStream out) throws IOException
    public void output(EntityRef entity, Writer out) throws IOException
    public void output(EntityRef entity, OutputStream out) throws IOException
    public void output(ProcessingInstruction processingInstruction, Writer out)
      throws IOException
    public void output(ProcessingInstruction processingInstruction, OutputStream out)
     throws IOException
    public void output(Text text, OutputStream out) throws IOException
    public void output(Text text, Writer out) throws IOException
     
    public void outputElementContent(Element element, OutputStream out)
    public void outputElementContent(Element element, Writer out)

    public String outputString(Document doc) throws IOException
    public String outputString(Element element) throws IOException
    public String outputString(CDATA cdata)
    public String outputString(Comment comment)
    public String outputString(DocType doctype)
    public String outputString(EntityRef entity)
    public String outputString(ProcessingInstruction pi)
    public String outputString(Text text)

    // internal printing methods
    protected void printDeclaration(Document doc, Writer out, String encoding) 
     throws IOException    
    protected void printDocType(DocType docType, Writer out) throws IOException
    protected void printComment(Comment comment, Writer out, int indentLevel) 
     throws IOException
    protected void printProcessingInstruction(ProcessingInstruction pi,
     Writer out) throws IOException
    protected void printCDATA(CDATA cdata, Writer out, int indentLevel) 
     throws IOException
    protected void printText(Text text, Writer out) throws IOException
    protected void printElement(Element element, Writer out,
     int indentLevel, NamespaceStack namespaces) throws IOException
    protected void printString(String s, Writer out) throws IOException
    protected void printEntity(Entity entity, Writer out) throws IOException
    protected void printNamespace(Namespace ns, Writer out) throws IOException
    protected void printAttributes(List attributes, Element parent, 
     Writer out, NamespaceStack namespaces)  
     throws IOException
    
    public int parseArgs(String[] args, int i) 
    
}

Previous | Next | Top | Cafe con Leche

Copyright 2000-2003 Elliotte Rusty Harold
elharo@metalab.unc.edu
Last Modified April 19, 2002