public final class SAXSerializer extends Object implements ContentHandler
Copyright (c) SAP AG 2003-2005
| Modifier and Type | Field and Description |
|---|---|
static String |
NS_XML
Namespace name for the namespace hardwired to the prefix "xml:"
|
static String |
NS_XMLNS
Namespace name for the namespace hardwired to the prefix "xmlns:"
|
| Modifier and Type | Method and Description |
|---|---|
void |
characters(char[] chars,
int offset,
int length) |
void |
endDocument() |
void |
endElement(String namespace,
String localname,
String qname) |
void |
endPrefixMapping(String prefix) |
static String |
escape(String s,
boolean escapeQuoteChar)
Escape characters in a string for inclusion into XML text content.
|
static SAXSerializer |
getInstance(OutputStream out,
String encoding,
boolean indent) |
static SAXSerializer |
getInstance(Writer writer,
boolean indent) |
void |
ignorableWhitespace(char[] chars,
int i,
int i1) |
void |
processingInstruction(String target,
String data) |
void |
setDocumentLocator(Locator locator) |
void |
skippedEntity(String s) |
void |
startDocument() |
void |
startElement(String namespace,
String localname,
String qname,
Attributes attributes) |
void |
startPrefixMapping(String prefix,
String namespace) |
public static final String NS_XML
public static final String NS_XMLNS
public static SAXSerializer getInstance(Writer writer, boolean indent)
public static SAXSerializer getInstance(OutputStream out, String encoding, boolean indent) throws UnsupportedEncodingException
UnsupportedEncodingExceptionpublic void startPrefixMapping(String prefix, String namespace) throws SAXException
startPrefixMapping in interface ContentHandlerSAXExceptionpublic void endPrefixMapping(String prefix) throws SAXException
endPrefixMapping in interface ContentHandlerSAXExceptionpublic void startDocument()
throws SAXException
startDocument in interface ContentHandlerSAXExceptionpublic void endDocument()
throws SAXException
endDocument in interface ContentHandlerSAXExceptionpublic void startElement(String namespace, String localname, String qname, Attributes attributes) throws SAXException
startElement in interface ContentHandlerSAXExceptionpublic void endElement(String namespace, String localname, String qname) throws SAXException
endElement in interface ContentHandlerSAXExceptionpublic void characters(char[] chars,
int offset,
int length)
throws SAXException
characters in interface ContentHandlerSAXExceptionpublic void ignorableWhitespace(char[] chars,
int i,
int i1)
throws SAXException
ignorableWhitespace in interface ContentHandlerSAXExceptionpublic void processingInstruction(String target, String data) throws SAXException
processingInstruction in interface ContentHandlerSAXExceptionpublic void setDocumentLocator(Locator locator)
setDocumentLocator in interface ContentHandlerpublic void skippedEntity(String s) throws SAXException
skippedEntity in interface ContentHandlerSAXExceptionpublic static String escape(String s, boolean escapeQuoteChar) throws SAXException
s - un-escaped stringescapeQuoteChar - whether to escape the quote character or not (for
attribute values). Note that attributes are supposed to be quoted
using double quotes, so apostroph characters are not
replaced.SAXException - Exception raised in failure situation| Access Rights |
|---|
| SC | DC | Public Part | ACH |
|---|---|---|---|
[sap.com] KMC-CM
|
[sap.com] tc/km/frwk
|
api
|
EP-KM-CM
|
[sap.com] KMC-WPC
|
[sap.com] tc/kmc/wpc/wpcfacade
|
api
|
EP-PIN-WPC-WCM
|
Copyright 2021 SAP SE Complete Copyright Notice