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
UnsupportedEncodingException
public void startPrefixMapping(String prefix, String namespace) throws SAXException
startPrefixMapping
in interface ContentHandler
SAXException
public void endPrefixMapping(String prefix) throws SAXException
endPrefixMapping
in interface ContentHandler
SAXException
public void startDocument() throws SAXException
startDocument
in interface ContentHandler
SAXException
public void endDocument() throws SAXException
endDocument
in interface ContentHandler
SAXException
public void startElement(String namespace, String localname, String qname, Attributes attributes) throws SAXException
startElement
in interface ContentHandler
SAXException
public void endElement(String namespace, String localname, String qname) throws SAXException
endElement
in interface ContentHandler
SAXException
public void characters(char[] chars, int offset, int length) throws SAXException
characters
in interface ContentHandler
SAXException
public void ignorableWhitespace(char[] chars, int i, int i1) throws SAXException
ignorableWhitespace
in interface ContentHandler
SAXException
public void processingInstruction(String target, String data) throws SAXException
processingInstruction
in interface ContentHandler
SAXException
public void setDocumentLocator(Locator locator)
setDocumentLocator
in interface ContentHandler
public void skippedEntity(String s) throws SAXException
skippedEntity
in interface ContentHandler
SAXException
public 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 situationAccess 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 2018 SAP AG Complete Copyright Notice