org.codehaus.plexus.util.xml.pull
Class MXSerializer
java.lang.Object
org.codehaus.plexus.util.xml.pull.MXSerializer
- All Implemented Interfaces:
- XmlSerializer
public class MXSerializer
- extends Object
- implements XmlSerializer
Method Summary |
XmlSerializer |
attribute(String namespace,
String name,
String value)
|
void |
cdsect(String text)
|
void |
comment(String text)
|
void |
docdecl(String text)
|
void |
endDocument()
|
XmlSerializer |
endTag(String namespace,
String name)
|
void |
entityRef(String text)
|
void |
flush()
|
int |
getDepth()
|
boolean |
getFeature(String name)
|
String |
getName()
|
String |
getNamespace()
|
String |
getPrefix(String namespace,
boolean generatePrefix)
|
Object |
getProperty(String name)
|
void |
ignorableWhitespace(String text)
|
void |
processingInstruction(String text)
|
void |
setFeature(String name,
boolean state)
|
void |
setOutput(OutputStream os,
String encoding)
|
void |
setOutput(Writer writer)
|
void |
setPrefix(String prefix,
String namespace)
|
void |
setProperty(String name,
Object value)
|
void |
startDocument(String encoding,
Boolean standalone)
|
XmlSerializer |
startTag(String namespace,
String name)
|
XmlSerializer |
text(char[] buf,
int start,
int len)
|
XmlSerializer |
text(String text)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MXSerializer
public MXSerializer()
setOutput
public void setOutput(Writer writer)
- Specified by:
setOutput
in interface XmlSerializer
attribute
public XmlSerializer attribute(String namespace,
String name,
String value)
throws IOException,
IllegalArgumentException,
IllegalStateException
- Specified by:
attribute
in interface XmlSerializer
- Throws:
IOException
IllegalArgumentException
IllegalStateException
cdsect
public void cdsect(String text)
throws IOException,
IllegalArgumentException,
IllegalStateException
- Specified by:
cdsect
in interface XmlSerializer
- Throws:
IOException
IllegalArgumentException
IllegalStateException
comment
public void comment(String text)
throws IOException,
IllegalArgumentException,
IllegalStateException
- Specified by:
comment
in interface XmlSerializer
- Throws:
IOException
IllegalArgumentException
IllegalStateException
docdecl
public void docdecl(String text)
throws IOException,
IllegalArgumentException,
IllegalStateException
- Specified by:
docdecl
in interface XmlSerializer
- Throws:
IOException
IllegalArgumentException
IllegalStateException
endDocument
public void endDocument()
throws IOException,
IllegalArgumentException,
IllegalStateException
- Specified by:
endDocument
in interface XmlSerializer
- Throws:
IOException
IllegalArgumentException
IllegalStateException
endTag
public XmlSerializer endTag(String namespace,
String name)
throws IOException,
IllegalArgumentException,
IllegalStateException
- Specified by:
endTag
in interface XmlSerializer
- Throws:
IOException
IllegalArgumentException
IllegalStateException
entityRef
public void entityRef(String text)
throws IOException,
IllegalArgumentException,
IllegalStateException
- Specified by:
entityRef
in interface XmlSerializer
- Throws:
IOException
IllegalArgumentException
IllegalStateException
flush
public void flush()
throws IOException
- Specified by:
flush
in interface XmlSerializer
- Throws:
IOException
getDepth
public int getDepth()
- Specified by:
getDepth
in interface XmlSerializer
getFeature
public boolean getFeature(String name)
- Specified by:
getFeature
in interface XmlSerializer
getName
public String getName()
- Specified by:
getName
in interface XmlSerializer
getNamespace
public String getNamespace()
- Specified by:
getNamespace
in interface XmlSerializer
getPrefix
public String getPrefix(String namespace,
boolean generatePrefix)
throws IllegalArgumentException
- Specified by:
getPrefix
in interface XmlSerializer
- Throws:
IllegalArgumentException
getProperty
public Object getProperty(String name)
- Specified by:
getProperty
in interface XmlSerializer
ignorableWhitespace
public void ignorableWhitespace(String text)
throws IOException,
IllegalArgumentException,
IllegalStateException
- Specified by:
ignorableWhitespace
in interface XmlSerializer
- Throws:
IOException
IllegalArgumentException
IllegalStateException
processingInstruction
public void processingInstruction(String text)
throws IOException,
IllegalArgumentException,
IllegalStateException
- Specified by:
processingInstruction
in interface XmlSerializer
- Throws:
IOException
IllegalArgumentException
IllegalStateException
setFeature
public void setFeature(String name,
boolean state)
throws IllegalArgumentException,
IllegalStateException
- Specified by:
setFeature
in interface XmlSerializer
- Throws:
IllegalArgumentException
IllegalStateException
setOutput
public void setOutput(OutputStream os,
String encoding)
throws IOException,
IllegalArgumentException,
IllegalStateException
- Specified by:
setOutput
in interface XmlSerializer
- Throws:
IOException
IllegalArgumentException
IllegalStateException
setPrefix
public void setPrefix(String prefix,
String namespace)
throws IOException,
IllegalArgumentException,
IllegalStateException
- Specified by:
setPrefix
in interface XmlSerializer
- Throws:
IOException
IllegalArgumentException
IllegalStateException
setProperty
public void setProperty(String name,
Object value)
throws IllegalArgumentException,
IllegalStateException
- Specified by:
setProperty
in interface XmlSerializer
- Throws:
IllegalArgumentException
IllegalStateException
startDocument
public void startDocument(String encoding,
Boolean standalone)
throws IOException,
IllegalArgumentException,
IllegalStateException
- Specified by:
startDocument
in interface XmlSerializer
- Throws:
IOException
IllegalArgumentException
IllegalStateException
startTag
public XmlSerializer startTag(String namespace,
String name)
throws IOException,
IllegalArgumentException,
IllegalStateException
- Specified by:
startTag
in interface XmlSerializer
- Throws:
IOException
IllegalArgumentException
IllegalStateException
text
public XmlSerializer text(String text)
throws IOException,
IllegalArgumentException,
IllegalStateException
- Specified by:
text
in interface XmlSerializer
- Throws:
IOException
IllegalArgumentException
IllegalStateException
text
public XmlSerializer text(char[] buf,
int start,
int len)
throws IOException,
IllegalArgumentException,
IllegalStateException
- Specified by:
text
in interface XmlSerializer
- Throws:
IOException
IllegalArgumentException
IllegalStateException
Copyright © 2002-2012 The Apache Software Foundation. All Rights Reserved.