public class MXSerializer extends Object implements XmlSerializer
Constructor and Description |
---|
MXSerializer() |
Modifier and Type | Method and Description |
---|---|
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) |
public void setOutput(Writer writer)
setOutput
in interface XmlSerializer
public XmlSerializer attribute(String namespace, String name, String value) throws IOException, IllegalArgumentException, IllegalStateException
attribute
in interface XmlSerializer
IOException
IllegalArgumentException
IllegalStateException
public void cdsect(String text) throws IOException, IllegalArgumentException, IllegalStateException
cdsect
in interface XmlSerializer
IOException
IllegalArgumentException
IllegalStateException
public void comment(String text) throws IOException, IllegalArgumentException, IllegalStateException
comment
in interface XmlSerializer
IOException
IllegalArgumentException
IllegalStateException
public void docdecl(String text) throws IOException, IllegalArgumentException, IllegalStateException
docdecl
in interface XmlSerializer
IOException
IllegalArgumentException
IllegalStateException
public void endDocument() throws IOException, IllegalArgumentException, IllegalStateException
endDocument
in interface XmlSerializer
IOException
IllegalArgumentException
IllegalStateException
public XmlSerializer endTag(String namespace, String name) throws IOException, IllegalArgumentException, IllegalStateException
endTag
in interface XmlSerializer
IOException
IllegalArgumentException
IllegalStateException
public void entityRef(String text) throws IOException, IllegalArgumentException, IllegalStateException
entityRef
in interface XmlSerializer
IOException
IllegalArgumentException
IllegalStateException
public void flush() throws IOException
flush
in interface XmlSerializer
IOException
public int getDepth()
getDepth
in interface XmlSerializer
public boolean getFeature(String name)
getFeature
in interface XmlSerializer
public String getName()
getName
in interface XmlSerializer
public String getNamespace()
getNamespace
in interface XmlSerializer
public String getPrefix(String namespace, boolean generatePrefix) throws IllegalArgumentException
getPrefix
in interface XmlSerializer
IllegalArgumentException
public Object getProperty(String name)
getProperty
in interface XmlSerializer
public void ignorableWhitespace(String text) throws IOException, IllegalArgumentException, IllegalStateException
ignorableWhitespace
in interface XmlSerializer
IOException
IllegalArgumentException
IllegalStateException
public void processingInstruction(String text) throws IOException, IllegalArgumentException, IllegalStateException
processingInstruction
in interface XmlSerializer
IOException
IllegalArgumentException
IllegalStateException
public void setFeature(String name, boolean state) throws IllegalArgumentException, IllegalStateException
setFeature
in interface XmlSerializer
IllegalArgumentException
IllegalStateException
public void setOutput(OutputStream os, String encoding) throws IOException, IllegalArgumentException, IllegalStateException
setOutput
in interface XmlSerializer
IOException
IllegalArgumentException
IllegalStateException
public void setPrefix(String prefix, String namespace) throws IOException, IllegalArgumentException, IllegalStateException
setPrefix
in interface XmlSerializer
IOException
IllegalArgumentException
IllegalStateException
public void setProperty(String name, Object value) throws IllegalArgumentException, IllegalStateException
setProperty
in interface XmlSerializer
IllegalArgumentException
IllegalStateException
public void startDocument(String encoding, Boolean standalone) throws IOException, IllegalArgumentException, IllegalStateException
startDocument
in interface XmlSerializer
IOException
IllegalArgumentException
IllegalStateException
public XmlSerializer startTag(String namespace, String name) throws IOException, IllegalArgumentException, IllegalStateException
startTag
in interface XmlSerializer
IOException
IllegalArgumentException
IllegalStateException
public XmlSerializer text(String text) throws IOException, IllegalArgumentException, IllegalStateException
text
in interface XmlSerializer
IOException
IllegalArgumentException
IllegalStateException
public XmlSerializer text(char[] buf, int start, int len) throws IOException, IllegalArgumentException, IllegalStateException
text
in interface XmlSerializer
IOException
IllegalArgumentException
IllegalStateException
Copyright © 2002–2018 The Apache Software Foundation. All rights reserved.