public class SaxVinciFrameBuilder extends DefaultHandler implements ContentHandler
Constructor and Description |
---|
SaxVinciFrameBuilder() |
Modifier and Type | Method and Description |
---|---|
void |
characters(char[] ch,
int start,
int length) |
void |
endElement(String namespaceURI,
String localName,
String qualifiedName) |
protected String |
getLeafContent(String aFrameName,
Attributes aAttributes,
StringBuffer aContentBuf)
Gets the content to be included in a FrameLeaf.
|
protected String |
getName(String s1,
String s2)
If the first String parameter is nonempty, return it, else return the second string parameter.
|
void |
setParentFrame(AFrame aParentFrame)
Sets the parent frame, to which frames built by the object will be added.
|
void |
startDocument() |
void |
startElement(String namespaceURI,
String localName,
String qualifiedName,
Attributes attributes)
Called for each start tag encountered.
|
endDocument, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startPrefixMapping, unparsedEntityDecl, warning
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
endDocument, endPrefixMapping, ignorableWhitespace, processingInstruction, setDocumentLocator, skippedEntity, startPrefixMapping
public void setParentFrame(AFrame aParentFrame)
aParentFrame
- the parent framepublic void startDocument() throws SAXException
startDocument
in interface ContentHandler
startDocument
in class DefaultHandler
SAXException
ContentHandler.startDocument()
public void startElement(String namespaceURI, String localName, String qualifiedName, Attributes attributes) throws SAXException
startElement
in interface ContentHandler
startElement
in class DefaultHandler
namespaceURI
- Required if the namespaces property is true.attributes
- The specified or defaulted attributes.localName
- The local name (without prefix), or the empty string if Namespace processing is not
being performed.qualifiedName
- The qualified name (with prefix), or the empty string if qualified names are not
available.SAXException
public void characters(char[] ch, int start, int length)
characters
in interface ContentHandler
characters
in class DefaultHandler
ContentHandler.characters(char[],int,int)
public void endElement(String namespaceURI, String localName, String qualifiedName)
endElement
in interface ContentHandler
endElement
in class DefaultHandler
ContentHandler.endElement(String,String,String)
protected String getLeafContent(String aFrameName, Attributes aAttributes, StringBuffer aContentBuf)
aFrameName
- name of the FrameLeafaAttributes
- attributes of FrameLeafaContentBuf
- StringBuffer containing the character data obtained from the SAX parserCopyright © 2017. All rights reserved.