Class TagMap.AttributeHandler
java.lang.Object
org.xml.sax.helpers.DefaultHandler
org.openpdf.text.xml.TagMap.AttributeHandler
- All Implemented Interfaces:
ContentHandler, DTDHandler, EntityResolver, ErrorHandler
- Enclosing class:
TagMap
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThis is an attributestatic final StringThis is a tagstatic final StringThis is an attributeprivate XmlPeerThis is the current peer.static final StringThis is an attributestatic final StringThis is a tagThis is the tagmap using the AttributeHandlerstatic final StringThis is an attribute -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcharacters(char[] ch, int start, int length) This method gets called when characters are encountered.voidendElement(String uri, String lname, String tag) This method gets called when an end tag is encountered.voidignorableWhitespace(char[] ch, int start, int length) This method gets called when ignorable white space encountered.voidstartElement(String uri, String lname, String tag, Attributes attrs) This method gets called when a start tag is encountered.Methods inherited from class DefaultHandler
endDocument, endPrefixMapping, error, fatalError, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl, warningMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ContentHandler
declaration
-
Field Details
-
TAG
-
ATTRIBUTE
-
NAME
-
ALIAS
-
VALUE
-
CONTENT
-
tagMap
-
currentPeer
This is the current peer.
-
-
Constructor Details
-
AttributeHandler
-
-
Method Details
-
startElement
This method gets called when a start tag is encountered.- Specified by:
startElementin interfaceContentHandler- Overrides:
startElementin classDefaultHandler- Parameters:
uri- the Uniform Resource Identifierlname- the local name (without prefix), or the empty string if Namespace processing is not being performed.tag- the name of the tag that is encounteredattrs- the list of attributes
-
ignorableWhitespace
public void ignorableWhitespace(char[] ch, int start, int length) This method gets called when ignorable white space encountered.- Specified by:
ignorableWhitespacein interfaceContentHandler- Overrides:
ignorableWhitespacein classDefaultHandler- Parameters:
ch- an array of charactersstart- the start position in the arraylength- the number of characters to read from the array
-
characters
public void characters(char[] ch, int start, int length) This method gets called when characters are encountered.- Specified by:
charactersin interfaceContentHandler- Overrides:
charactersin classDefaultHandler- Parameters:
ch- an array of charactersstart- the start position in the arraylength- the number of characters to read from the array
-
endElement
This method gets called when an end tag is encountered.- Specified by:
endElementin interfaceContentHandler- Overrides:
endElementin classDefaultHandler- Parameters:
uri- the Uniform Resource Identifierlname- the local name (without prefix), or the empty string if Namespace processing is not being performed.tag- the name of the tag that ends
-