|
Xindice API version 1.2m1 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.xindice.tools.command.StringSerializer
SAX content handler that produces a string from the SAX events it receives.
After calling endDocument()
, the string becomes available by
calling toString()
Constructor Summary | |
StringSerializer()
Creates new StringSerializer . |
|
StringSerializer(String encoding)
Creates new StringSerializer . |
Method Summary | |
void |
characters(char[] data,
int start,
int len)
|
void |
comment(char[] data,
int start,
int len)
|
void |
endCDATA()
|
void |
endDocument()
|
void |
endDTD()
|
void |
endElement(String ns,
String localName,
String qName)
|
void |
endEntity(String entity)
|
void |
endPrefixMapping(String prefix)
|
void |
ignorableWhitespace(char[] data,
int start,
int len)
|
void |
processingInstruction(String target,
String data)
|
void |
setDocumentLocator(org.xml.sax.Locator locator)
|
void |
skippedEntity(String entity)
|
void |
startCDATA()
|
void |
startDocument()
|
void |
startDTD(String docType,
String systemID,
String publicID)
|
void |
startElement(String ns,
String localName,
String qName,
org.xml.sax.Attributes att)
|
void |
startEntity(String entity)
|
void |
startPrefixMapping(String prefix,
String uri)
|
String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public StringSerializer()
StringSerializer
. The output encoding is not
specified therefore will be treated as "UTF-8".
public StringSerializer(String encoding)
StringSerializer
.
encoding
- The encoding that should be written into the
XML declaration for the document. This encoding
is not used in any other way: when the resultant
string is written to a file, the writing application
must still take care to actually write using the
correct encoding. If encoding
is
null
, the encoding will be omitted
from the XML declaration.Method Detail |
public void startDocument() throws org.xml.sax.SAXException
startDocument
in interface org.xml.sax.ContentHandler
org.xml.sax.SAXException
public void endDocument() throws org.xml.sax.SAXException
endDocument
in interface org.xml.sax.ContentHandler
org.xml.sax.SAXException
public void processingInstruction(String target, String data) throws org.xml.sax.SAXException
processingInstruction
in interface org.xml.sax.ContentHandler
org.xml.sax.SAXException
public void comment(char[] data, int start, int len) throws org.xml.sax.SAXException
comment
in interface org.xml.sax.ext.LexicalHandler
org.xml.sax.SAXException
public void startPrefixMapping(String prefix, String uri) throws org.xml.sax.SAXException
startPrefixMapping
in interface org.xml.sax.ContentHandler
org.xml.sax.SAXException
public void endPrefixMapping(String prefix) throws org.xml.sax.SAXException
endPrefixMapping
in interface org.xml.sax.ContentHandler
org.xml.sax.SAXException
public void ignorableWhitespace(char[] data, int start, int len) throws org.xml.sax.SAXException
ignorableWhitespace
in interface org.xml.sax.ContentHandler
org.xml.sax.SAXException
public void startElement(String ns, String localName, String qName, org.xml.sax.Attributes att) throws org.xml.sax.SAXException
startElement
in interface org.xml.sax.ContentHandler
org.xml.sax.SAXException
public void endElement(String ns, String localName, String qName) throws org.xml.sax.SAXException
endElement
in interface org.xml.sax.ContentHandler
org.xml.sax.SAXException
public void skippedEntity(String entity) throws org.xml.sax.SAXException
skippedEntity
in interface org.xml.sax.ContentHandler
org.xml.sax.SAXException
public void characters(char[] data, int start, int len) throws org.xml.sax.SAXException
characters
in interface org.xml.sax.ContentHandler
org.xml.sax.SAXException
public void setDocumentLocator(org.xml.sax.Locator locator)
setDocumentLocator
in interface org.xml.sax.ContentHandler
public void startCDATA() throws org.xml.sax.SAXException
startCDATA
in interface org.xml.sax.ext.LexicalHandler
org.xml.sax.SAXException
public void endCDATA() throws org.xml.sax.SAXException
endCDATA
in interface org.xml.sax.ext.LexicalHandler
org.xml.sax.SAXException
public void startEntity(String entity) throws org.xml.sax.SAXException
startEntity
in interface org.xml.sax.ext.LexicalHandler
org.xml.sax.SAXException
public void endEntity(String entity) throws org.xml.sax.SAXException
endEntity
in interface org.xml.sax.ext.LexicalHandler
org.xml.sax.SAXException
public void startDTD(String docType, String systemID, String publicID) throws org.xml.sax.SAXException
startDTD
in interface org.xml.sax.ext.LexicalHandler
org.xml.sax.SAXException
public void endDTD() throws org.xml.sax.SAXException
endDTD
in interface org.xml.sax.ext.LexicalHandler
org.xml.sax.SAXException
public String toString()
|
Xindice API version 1.2m1 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |