Package com.lowagie.text.xml
Class TagMap.AttributeHandler
java.lang.Object
org.xml.sax.helpers.DefaultHandler
com.lowagie.text.xml.TagMap.AttributeHandler
- All Implemented Interfaces:
ContentHandler
,DTDHandler
,EntityResolver
,ErrorHandler
- Enclosing class:
TagMap
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
This is an attributestatic final String
This is a tagstatic final String
This is an attributeprivate XmlPeer
This is the current peer.static final String
This is an attributestatic final String
This is a tagThis is the tagmap using the AttributeHandlerstatic final String
This is an attribute -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
characters
(char[] ch, int start, int length) This method gets called when characters are encountered.void
endElement
(String uri, String lname, String tag) This method gets called when an end tag is encountered.void
ignorableWhitespace
(char[] ch, int start, int length) This method gets called when ignorable white space encountered.void
startElement
(String uri, String lname, String tag, Attributes attrs) This method gets called when a start tag is encountered.Methods inherited from class org.xml.sax.helpers.DefaultHandler
endDocument, endPrefixMapping, error, fatalError, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl, warning
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.xml.sax.ContentHandler
declaration
-
Field Details
-
TAG
This is a tag- See Also:
-
ATTRIBUTE
This is a tag- See Also:
-
NAME
This is an attribute- See Also:
-
ALIAS
This is an attribute- See Also:
-
VALUE
This is an attribute- See Also:
-
CONTENT
This is an attribute- See Also:
-
tagMap
This is the tagmap using the AttributeHandler -
currentPeer
This is the current peer.
-
-
Constructor Details
-
AttributeHandler
-
-
Method Details
-
startElement
This method gets called when a start tag is encountered.- Specified by:
startElement
in interfaceContentHandler
- Overrides:
startElement
in 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:
ignorableWhitespace
in interfaceContentHandler
- Overrides:
ignorableWhitespace
in 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:
characters
in interfaceContentHandler
- Overrides:
characters
in 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:
endElement
in interfaceContentHandler
- Overrides:
endElement
in 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
-