public class JDOMWriter extends XMLWriterNamespaceBase
Document that is
created can be accessed by using getDocument().m_prefixes, m_uris| Constructor and Description |
|---|
JDOMWriter(String[] namespaces)
Creates a new instance with the given namespace URIs.
|
JDOMWriter(String[] namespaces,
org.jdom.Document document)
Creates a new instance with the given Document as target for marshalling.
|
JDOMWriter(String[] namespaces,
org.jdom.Element currentElement)
Creates a new instance with the given Element as target for marshalling.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addAttribute(int index,
String name,
String value) |
void |
close()
Does nothing.
|
void |
closeEmptyTag() |
void |
closeStartTag() |
protected void |
defineNamespace(int index,
String prefix)
Does nothing.
|
void |
endTag(int index,
String name) |
void |
flush()
Does nothing.
|
org.jdom.Document |
getDocument() |
void |
indent()
Does nothing.
|
void |
init()
Does nothing.
|
void |
reset() |
void |
setIndentSpaces(int count,
String newline,
char indent)
Does nothing.
|
void |
startTagClosed(int index,
String name) |
void |
startTagNamespaces(int index,
String name,
int[] nums,
String[] prefs) |
void |
startTagOpen(int index,
String name) |
protected void |
undefineNamespace(int index)
Does nothing.
|
void |
writeCData(String text) |
void |
writeComment(String text) |
void |
writeDocType(String name,
String sys,
String pub,
String subset) |
void |
writeEntityRef(String name) |
void |
writePI(String target,
String data) |
void |
writeTextContent(String text) |
void |
writeXMLDecl(String version,
String encoding,
String standalone)
Does nothing.
|
decrementNesting, getExtensionNamespaces, getNamespaceCount, getNamespacePrefix, getNamespaces, getNamespaceUri, getNestingDepth, getPrefixIndex, growArray, incrementNesting, internalNamespacePrefix, internalNamespaceUri, internalSetUris, openNamespaces, popExtensionNamespaces, popTranslationTable, pushExtensionNamespaces, pushTranslationTable, shrinkArray, translateNamespacepublic JDOMWriter(String[] namespaces)
public JDOMWriter(String[] namespaces, org.jdom.Document document)
document - must not be nullpublic JDOMWriter(String[] namespaces, org.jdom.Element currentElement)
currentElement - must not be nullpublic void init()
public void setIndentSpaces(int count,
String newline,
char indent)
public void writeXMLDecl(String version, String encoding, String standalone) throws IOException
IOExceptionpublic void startTagOpen(int index,
String name)
throws IOException
IOExceptionpublic void startTagNamespaces(int index,
String name,
int[] nums,
String[] prefs)
throws IOException
IOExceptionpublic void addAttribute(int index,
String name,
String value)
throws IOException
IOExceptionpublic void closeStartTag()
throws IOException
IOExceptionpublic void closeEmptyTag()
throws IOException
IOExceptionpublic void startTagClosed(int index,
String name)
throws IOException
IOExceptionpublic void endTag(int index,
String name)
throws IOException
IOExceptionpublic void writeTextContent(String text) throws IOException
IOExceptionpublic void writeCData(String text) throws IOException
IOExceptionpublic void writeComment(String text) throws IOException
IOExceptionpublic void writeEntityRef(String name) throws IOException
IOExceptionpublic void writeDocType(String name, String sys, String pub, String subset) throws IOException
IOExceptionpublic void writePI(String target, String data) throws IOException
IOExceptionpublic void indent()
throws IOException
IOExceptionpublic void flush()
throws IOException
IOExceptionpublic void close()
throws IOException
IOExceptionpublic void reset()
reset in interface IXMLWriterreset in class XMLWriterNamespaceBasepublic org.jdom.Document getDocument()
Document this writer created.protected void defineNamespace(int index,
String prefix)
throws IOException
defineNamespace in class XMLWriterNamespaceBaseIOExceptionprotected void undefineNamespace(int index)
undefineNamespace in class XMLWriterNamespaceBaseCopyright © 2005-2014 jibx.org. All Rights Reserved.