|
SAP NetWeaver '04 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sapportals.wcm.util.xml.SAXSerializer
Simple SAX serializer. Only supports simple indentation (whitespace preservation not implemented - if whitespace preservation is required simply do not indent).
Copyright (c) SAP AG 2003-2005
| Field Summary | |
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:" |
| Method Summary | |
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)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final String NS_XML
public static final String NS_XMLNS
| Method Detail |
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 ContentHandlerSAXException
public void endPrefixMapping(String prefix)
throws SAXException
endPrefixMapping in interface ContentHandlerSAXException
public void startDocument()
throws SAXException
startDocument in interface ContentHandlerSAXException
public void endDocument()
throws SAXException
endDocument in interface ContentHandlerSAXException
public void startElement(String namespace,
String localname,
String qname,
Attributes attributes)
throws SAXException
startElement in interface ContentHandlerSAXException
public void endElement(String namespace,
String localname,
String qname)
throws SAXException
endElement in interface ContentHandlerSAXException
public void characters(char[] chars,
int offset,
int length)
throws SAXException
characters in interface ContentHandlerSAXException
public void ignorableWhitespace(char[] chars,
int i,
int i1)
throws SAXException
ignorableWhitespace in interface ContentHandlerSAXException
public void processingInstruction(String target,
String data)
throws SAXException
processingInstruction in interface ContentHandlerSAXExceptionpublic void setDocumentLocator(Locator locator)
setDocumentLocator in interface ContentHandler
public void skippedEntity(String s)
throws SAXException
skippedEntity in interface ContentHandlerSAXException
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 situation
|
SAP NetWeaver '04 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||