XmlSerializer

package org.xmlpull.v1;

public interface XmlSerializer {

  public void setFeature(String name, boolean state)
   throws IllegalArgumentException, IllegalStateException;
  public boolean getFeature(String name);
  public void setProperty(String name, Object value)
   throws IllegalArgumentException, IllegalStateException;
  public Object getProperty(String name);

  public void setOutput(OutputStream out, String encoding)
   throws IOException, IllegalArgumentException, IllegalStateException;
  public void setOutput(Writer out)
   throws IOException, IllegalArgumentException, IllegalStateException;

  public void startDocument(String encoding, Boolean standalone)
   throws IOException, IllegalArgumentException, IllegalStateException;
  public void endDocument()
   throws IOException, IllegalArgumentException, IllegalStateException;
  public void setPrefix(String prefix, String namespace)
   throws IOException, IllegalArgumentException, IllegalStateException;
  public String getPrefix(String namespace, boolean generatePrefix)
   throws IllegalArgumentException;
  public int getDepth();
  public String getNamespace();
  public String getName();

  public XmlSerializer startTag(String namespace, String name)
   throws IOException, IllegalArgumentException, IllegalStateException;
  public XmlSerializer attribute(String namespace, String name, String value)
   throws IOException, IllegalArgumentException, IllegalStateException;
  public XmlSerializer endTag(String namespace, String name)
   throws IOException, IllegalArgumentException, IllegalStateException;
  public XmlSerializer text(String text)
   throws IOException, IllegalArgumentException, IllegalStateException;
  public XmlSerializer text(char [] buf, int start, int len)
   throws IOException, IllegalArgumentException, IllegalStateException;

  public void cdsect(String text)
   throws IOException, IllegalArgumentException, IllegalStateException;
  public void entityRef(String text)  throws IOException,
        IllegalArgumentException, IllegalStateException;
  public void processingInstruction(String text)
   throws IOException, IllegalArgumentException, IllegalStateException;
  public void comment(String text)
   throws IOException, IllegalArgumentException, IllegalStateException;
  public void docdecl(String text)
   throws IOException, IllegalArgumentException, IllegalStateException;
  public void ignorableWhitespace(String text)
   throws IOException, IllegalArgumentException, IllegalStateException;

  public void flush() throws IOException;

}

Previous | Next | Top | Cafe con Leche

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