|
Data Request Broker 2-3-release |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfr.gael.drb.impl.xml.XmlWriter
public class XmlWriter
Writer of XML nodes. This writer save DrbNodes into an XML document.
| Nested Class Summary | |
|---|---|
static class |
XmlWriter.Context
The dynamic context. |
| Field Summary | |
|---|---|
static int |
SHOW_ALL
Show all items. |
static int |
SHOW_ATTRIBUTE
Show attribute items. |
static int |
SHOW_COMMENT
Show comment items. |
static int |
SHOW_NOTATION
Show NOTATION items. |
static int |
SHOW_PROCESSING_INSTRUCTION
Show PI items. |
| Constructor Summary | |
|---|---|
XmlWriter(DrbNode node)
Builds a XML Writer from an output node. |
|
XmlWriter(OutputStream file)
Builds a XML Writer from an output stream. |
|
XmlWriter(Writer file,
String encoding)
Builds a XML Writer from a writer. |
|
| Method Summary | |
|---|---|
static void |
dump(DrbItem item,
OutputStream stream,
String indent)
Dump the infoset structure of a node. |
static void |
main(String[] args)
Make this class runnable for testing. |
void |
save(DrbNode node)
Writes the input tree nodes into an output stream. |
void |
save(DrbNode node,
XmlWriter.Context context,
boolean prolog)
Writes the input tree nodes. |
static void |
writeXML(DrbNode node,
OutputStream file)
Writes the input tree nodes into a file. |
static void |
writeXML(DrbNode node,
OutputStream file,
XmlWriter.Context context,
boolean prolog)
Writes the input tree nodes into a file. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int SHOW_ALL
public static final int SHOW_ATTRIBUTE
public static final int SHOW_COMMENT
public static final int SHOW_PROCESSING_INSTRUCTION
public static final int SHOW_NOTATION
| Constructor Detail |
|---|
public XmlWriter(OutputStream file)
file - the output stream to be used for printing XML document
public XmlWriter(Writer file,
String encoding)
file - the writer to be used for printing XML documentencoding - the encoding used by the writer.public XmlWriter(DrbNode node)
node - the output node to be used for printing XML document| Method Detail |
|---|
public static void writeXML(DrbNode node,
OutputStream file)
node - the input node to be printed.file - the output stream to be used for printing XML document
public static void writeXML(DrbNode node,
OutputStream file,
XmlWriter.Context context,
boolean prolog)
node - the input node to be printed.file - the output stream to be used for printing XML documentcontext - the writer context.prolog - true to print the prolog and false otherwisepublic void save(DrbNode node)
node - the input node to be printed.
public void save(DrbNode node,
XmlWriter.Context context,
boolean prolog)
node - the input node to be printed.context - the writer context.prolog - true to print the prolog and false otherwise
public static void dump(DrbItem item,
OutputStream stream,
String indent)
public static void main(String[] args)
args - the arguments.
|
Data Request Broker - DRB API® 2-3-release |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||