|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jibx.runtime.impl.XMLWriterNamespaceBase
org.jibx.extras.JDOMWriter
public class JDOMWriter
JDOM implementation of XML writer interface. The Document that is
created can be accessed by using getDocument().
| Field Summary |
|---|
| Fields inherited from class org.jibx.runtime.impl.XMLWriterNamespaceBase |
|---|
m_prefixes, m_uris |
| Constructor Summary | |
|---|---|
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. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JDOMWriter(String[] namespaces)
public JDOMWriter(String[] namespaces,
org.jdom.Document document)
document - must not be null
public JDOMWriter(String[] namespaces,
org.jdom.Element currentElement)
currentElement - must not be null| Method Detail |
|---|
public void init()
public void setIndentSpaces(int count,
String newline,
char indent)
public void writeXMLDecl(String version,
String encoding,
String standalone)
throws IOException
IOException
public void startTagOpen(int index,
String name)
throws IOException
IOException
public void startTagNamespaces(int index,
String name,
int[] nums,
String[] prefs)
throws IOException
IOException
public void addAttribute(int index,
String name,
String value)
throws IOException
IOException
public void closeStartTag()
throws IOException
IOException
public void closeEmptyTag()
throws IOException
IOException
public void startTagClosed(int index,
String name)
throws IOException
IOException
public void endTag(int index,
String name)
throws IOException
IOException
public void writeTextContent(String text)
throws IOException
IOException
public void writeCData(String text)
throws IOException
IOException
public void writeComment(String text)
throws IOException
IOException
public void writeEntityRef(String name)
throws IOException
IOException
public void writeDocType(String name,
String sys,
String pub,
String subset)
throws IOException
IOException
public void writePI(String target,
String data)
throws IOException
IOException
public void indent()
throws IOException
IOException
public void flush()
throws IOException
IOException
public 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 XMLWriterNamespaceBase
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||