|
Devsphere.com |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--com.devsphere.xml.saxdomix.helpers.ResultFilter
This is a filter for SAX events used by SDXTransformer.
| Field Summary | |
protected javax.xml.transform.sax.TransformerHandler |
serializer
The serializer that receives the filtered events |
| Constructor Summary | |
ResultFilter(javax.xml.transform.sax.TransformerHandler serializer)
Creates a new filter. |
|
| Method Summary | |
void |
characters(char[] ch,
int start,
int length)
Forwards the SAX event to the serializer object. |
void |
comment(char[] ch,
int start,
int length)
Forwards the SAX event to the serializer object. |
void |
endCDATA()
Forwards the SAX event to the serializer object. |
void |
endDocument()
Ignores the SAX event. |
void |
endDTD()
Ignores the SAX event. |
void |
endElement(java.lang.String namespaceURI,
java.lang.String localName,
java.lang.String qualifiedName)
Forwards the SAX event to the serializer object. |
void |
endEntity(java.lang.String name)
Forwards the SAX event to the serializer object. |
void |
endPrefixMapping(java.lang.String prefix)
Forwards the SAX event to the serializer object. |
void |
ignorableWhitespace(char[] ch,
int start,
int length)
Forwards the SAX event to the serializer object. |
void |
processingInstruction(java.lang.String target,
java.lang.String data)
Forwards the SAX event to the serializer object. |
void |
setDocumentLocator(org.xml.sax.Locator locator)
Ignores the SAX event. |
void |
skippedEntity(java.lang.String name)
Forwards the SAX event to the serializer object. |
void |
startCDATA()
Forwards the SAX event to the serializer object. |
void |
startDocument()
Ignores the SAX event. |
void |
startDTD(java.lang.String name,
java.lang.String publicId,
java.lang.String systemId)
Ignores the SAX event. |
void |
startElement(java.lang.String namespaceURI,
java.lang.String localName,
java.lang.String qualifiedName,
org.xml.sax.Attributes attributes)
Forwards the SAX event to the serializer object. |
void |
startEntity(java.lang.String name)
Forwards the SAX event to the serializer object. |
void |
startPrefixMapping(java.lang.String prefix,
java.lang.String uri)
Forwards the SAX event to the serializer object. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected javax.xml.transform.sax.TransformerHandler serializer
| Constructor Detail |
public ResultFilter(javax.xml.transform.sax.TransformerHandler serializer)
serializer - Object that receives the filtered events| Method Detail |
public void setDocumentLocator(org.xml.sax.Locator locator)
setDocumentLocator in interface org.xml.sax.ContentHandlerlocator - The SAX Locator object
public void startDocument()
throws org.xml.sax.SAXException
startDocument in interface org.xml.sax.ContentHandlerorg.xml.sax.SAXException - Cannot be thrown since the method does nothing
public void endDocument()
throws org.xml.sax.SAXException
endDocument in interface org.xml.sax.ContentHandlerorg.xml.sax.SAXException - Cannot be thrown since the method does nothing
public void startPrefixMapping(java.lang.String prefix,
java.lang.String uri)
throws org.xml.sax.SAXException
startPrefixMapping in interface org.xml.sax.ContentHandlerprefix - The namespace prefix.uri - The namespace URI the prefix is mapped to.
org.xml.sax.SAXException - Error reported by the serializer's method
public void endPrefixMapping(java.lang.String prefix)
throws org.xml.sax.SAXException
endPrefixMapping in interface org.xml.sax.ContentHandlerprefix - The namespace prefix.
org.xml.sax.SAXException - Error reported by the serializer's method
public void startElement(java.lang.String namespaceURI,
java.lang.String localName,
java.lang.String qualifiedName,
org.xml.sax.Attributes attributes)
throws org.xml.sax.SAXException
startElement in interface org.xml.sax.ContentHandlernamespaceURI - The element's namespace URIlocalName - The element's local namequalifiedName - The element's qualified nameattributes - The element's attributes
org.xml.sax.SAXException - Error reported by the serializer's method
public void endElement(java.lang.String namespaceURI,
java.lang.String localName,
java.lang.String qualifiedName)
throws org.xml.sax.SAXException
endElement in interface org.xml.sax.ContentHandlernamespaceURI - The element's namespace URIlocalName - The element's local namequalifiedName - The element's qualified name
org.xml.sax.SAXException - Error reported by the serializer's method
public void characters(char[] ch,
int start,
int length)
throws org.xml.sax.SAXException
characters in interface org.xml.sax.ContentHandlerch - The characters from the XML documentstart - The start position in the arraylength - The number of characters to get from the array
org.xml.sax.SAXException - Error reported by the serializer's method
public void ignorableWhitespace(char[] ch,
int start,
int length)
throws org.xml.sax.SAXException
ignorableWhitespace in interface org.xml.sax.ContentHandlerch - The characters from the XML documentstart - The start position in the arraylength - The number of characters to get from the array
org.xml.sax.SAXException - Error reported by the serializer's method
public void processingInstruction(java.lang.String target,
java.lang.String data)
throws org.xml.sax.SAXException
processingInstruction in interface org.xml.sax.ContentHandlertarget - The target of the processing instruction.data - The data of the processing instruction.
org.xml.sax.SAXException - Error reported by the serializer's method
public void skippedEntity(java.lang.String name)
throws org.xml.sax.SAXException
skippedEntity in interface org.xml.sax.ContentHandlername - The name of an entity
org.xml.sax.SAXException - Error reported by the serializer's method
public void startDTD(java.lang.String name,
java.lang.String publicId,
java.lang.String systemId)
throws org.xml.sax.SAXException
startDTD in interface org.xml.sax.ext.LexicalHandlername - The name of the document's root element.publicId - The public identifier of the external DTDsystemId - The system identifier of the external DTD
org.xml.sax.SAXException - Cannot be thrown since the method does nothing
public void endDTD()
throws org.xml.sax.SAXException
endDTD in interface org.xml.sax.ext.LexicalHandlerorg.xml.sax.SAXException - Cannot be thrown since the method does nothing
public void startEntity(java.lang.String name)
throws org.xml.sax.SAXException
startEntity in interface org.xml.sax.ext.LexicalHandlername - The name of an entity
org.xml.sax.SAXException - Cannot be thrown since the method does nothing
public void endEntity(java.lang.String name)
throws org.xml.sax.SAXException
endEntity in interface org.xml.sax.ext.LexicalHandlername - The name of an entity
org.xml.sax.SAXException - Cannot be thrown since the method does nothing
public void startCDATA()
throws org.xml.sax.SAXException
startCDATA in interface org.xml.sax.ext.LexicalHandlerorg.xml.sax.SAXException - Error reported by the serializer's method
public void endCDATA()
throws org.xml.sax.SAXException
endCDATA in interface org.xml.sax.ext.LexicalHandlerorg.xml.sax.SAXException - Error reported by the serializer's method
public void comment(char[] ch,
int start,
int length)
throws org.xml.sax.SAXException
comment in interface org.xml.sax.ext.LexicalHandlerch - An array holding the characters in the commentstart - The start position in the arraylength - The number of characters to get from the array
org.xml.sax.SAXException - Error reported by the serializer's method
|
Devsphere.com |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||