|
SAP NetWeaver 2004S SPS 10 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sap.mw.jco.util.XMLWriterBase
com.sap.mw.jco.JCO.Record.XMLWriter
Converts a record to an XML document
| Field Summary | |
static String |
DEFAULT_NAMESPACE
|
protected String |
m_namespace_urn
|
protected JCO.Record |
m_record
The record which is being XML serialized |
protected String[] |
m_tags
The array of escaped element tags |
| Fields inherited from class com.sap.mw.jco.util.XMLWriterBase |
DOCUMENT_BUFFER_SIZE, ESCAPE_DEFAULT, ESCAPE_IDOC46, ESCAPE_IDOC610, ESCAPE_NONE, m_escape_mode, m_parent, m_trim_spaces, m_with_end_of_line, NAMESPACE_URN_SAP_RFC, NAMESPACE_URN_SOAP_UC |
| Constructor Summary | |
JCO.Record.XMLWriter()
Create a new XMLWriter |
|
JCO.Record.XMLWriter(JCO.Record.XMLWriter parent,
Writer writer)
Creates a new XMLWriter object |
|
JCO.Record.XMLWriter(Writer writer)
Creates a new XMLWriter object |
|
| Method Summary | |
static String |
createXMLDocument(JCO.Record record,
String root_tag)
Constructs an XML document from the passed record and returns it as a string. |
static String |
createXMLDocument(JCO.Record record,
String root_tag,
String namespace,
String namespace_urn)
Constructs an XML document from the passed record and returns it as a string. |
JCO.Record.XMLWriter |
element(int index)
Appends a field to the document |
JCO.Record.XMLWriter |
encode(JCO.Record record,
String root_tag)
Converts the record to an XML document and appends it to the document buffer |
JCO.Record.XMLWriter |
encode(JCO.Record record,
String root_tag,
String namespace,
String namespace_urn)
Converts the record to an XML document and appends it to the document buffer |
static void |
writeXMLDocument(JCO.Record record,
String root_tag,
String namespace,
String namespace_urn,
Writer writer)
Constructs an XML document from the passed record and writes it to the output stream using the specified character encoding. |
static void |
writeXMLDocument(JCO.Record record,
String root_tag,
Writer writer)
Constructs an XML document from the passed record and writes it to the output stream using the specified character encoding. |
| Methods inherited from class com.sap.mw.jco.util.XMLWriterBase |
close, comment, content, content, content, content, element, element, element, element, empty, empty, ensureBufferCapacity, escape, etag, flush, getBuffer, getEncoding, getEndOfLineMode, getEscapeMode, getTrimTrailingSpaces, length, prolog, reset, setEndOfLineMode, setEscapeMode, setTrimTrailingSpaces, stag, stag, stag, toCharArray, toString |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static final String DEFAULT_NAMESPACE
protected String m_namespace_urn
protected String[] m_tags
protected JCO.Record m_record
| Constructor Detail |
public JCO.Record.XMLWriter()
public JCO.Record.XMLWriter(Writer writer)
writer - output writer where to write the generated document to
public JCO.Record.XMLWriter(JCO.Record.XMLWriter parent,
Writer writer)
parent - the parental XMLWriterwriter - output writer where to write the generated document to| Method Detail |
public static String createXMLDocument(JCO.Record record,
String root_tag)
record - the record from which to construct the XML documentroot_tag - the root tag or null
public static String createXMLDocument(JCO.Record record,
String root_tag,
String namespace,
String namespace_urn)
record - the record from which to construct the XML documentroot_tag - the root tag or nullnamespace - the namespace or null if not requirednamespace_urn - the urn associated with the namespace or null if not defined
public static void writeXMLDocument(JCO.Record record,
String root_tag,
Writer writer)
throws IOException
record - the record from which to construct the XML documentroot_tag - the root tag or nullwriter - output writer where to write the generated document to
IOException
public static void writeXMLDocument(JCO.Record record,
String root_tag,
String namespace,
String namespace_urn,
Writer writer)
throws IOException
record - the record from which to construct the XML documentroot_tag - the root tag or nullnamespace - the namespace or null if not requirednamespace_urn - the urn associated with the namespace or null if not definedwriter - output writer where to write the generated document to
IOException
public JCO.Record.XMLWriter encode(JCO.Record record,
String root_tag)
throws IOException
record - the record which to append to the XML documentroot_tag - the root tag or null
IOException - thrown if an input/output error occured
JCO.Exception - if an other JCO related error occured
public JCO.Record.XMLWriter encode(JCO.Record record,
String root_tag,
String namespace,
String namespace_urn)
throws IOException
record - the record which to append to the XML documentroot_tag - the root tag or null
IOException - thrown if an input/output error occured
JCO.Exception - if an other JCO related error occured
public JCO.Record.XMLWriter element(int index)
throws IOException
index - the index of the field to append
IOException - thrown if an input/output error occured
JCO.Exception - if an other JCO related error occured
|
SAP NetWeaver 2004S SPS 10 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||