|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object gnu.xml.pipeline.EventFilter fi.iki.hsivonen.xml.TitleGrabber
public class TitleGrabber
Grabs the contents of the title element to be returned later.
Field Summary | |
---|---|
private boolean |
headOpen
|
private StringBuilder |
title
|
private boolean |
titleOpen
|
private static String |
XHTML_NS
The XHTML namespace URI |
Fields inherited from class gnu.xml.pipeline.EventFilter |
---|
DECL_HANDLER, FEATURE_URI, LEXICAL_HANDLER, PROPERTY_URI |
Constructor Summary | |
---|---|
TitleGrabber()
|
|
TitleGrabber(gnu.xml.pipeline.EventConsumer next)
|
Method Summary | |
---|---|
void |
characters(char[] arg0,
int arg1,
int arg2)
|
void |
endElement(String uri,
String local,
String qname)
|
String |
getTitle()
|
void |
startElement(String uri,
String local,
String qname,
Attributes attributes)
|
Methods inherited from class gnu.xml.pipeline.EventFilter |
---|
attributeDecl, bind, chainTo, comment, elementDecl, endCDATA, endDocument, endDTD, endEntity, endPrefixMapping, externalEntityDecl, getContentHandler, getDocumentLocator, getDTDHandler, getErrorHandler, getNext, getProperty, ignorableWhitespace, internalEntityDecl, notationDecl, processingInstruction, setContentHandler, setDocumentLocator, setDTDHandler, setErrorHandler, setProperty, skippedEntity, startCDATA, startDocument, startDTD, startEntity, startPrefixMapping, unparsedEntityDecl |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static final String XHTML_NS
private StringBuilder title
private boolean headOpen
private boolean titleOpen
Constructor Detail |
---|
public TitleGrabber(gnu.xml.pipeline.EventConsumer next)
public TitleGrabber()
Method Detail |
---|
public String getTitle()
public void endElement(String uri, String local, String qname) throws SAXException
endElement
in interface ContentHandler
endElement
in class gnu.xml.pipeline.EventFilter
SAXException
public void startElement(String uri, String local, String qname, Attributes attributes) throws SAXException
startElement
in interface ContentHandler
startElement
in class gnu.xml.pipeline.EventFilter
SAXException
public void characters(char[] arg0, int arg1, int arg2) throws SAXException
characters
in interface ContentHandler
characters
in class gnu.xml.pipeline.EventFilter
SAXException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |