|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.xml.sax.helpers.DefaultHandler
org.jfree.xml.FrontendDefaultHandler
public abstract class FrontendDefaultHandler
The frontenddefault handler connects the SAX-backend with the handler implementations. It must be the base class for all parser implementations used by the ParserFrontEnd.
| Field Summary | |
|---|---|
static String |
CONTENTBASE_KEY
A key for the content base. |
| Constructor Summary | |
|---|---|
protected |
FrontendDefaultHandler()
Default constructor. |
| Method Summary | |
|---|---|
Object |
clone()
Returns a clone of this instance. |
Iterator |
findPropertyKeys(String prefix)
Returns all keys with the given prefix. |
CommentHandler |
getCommentHandler()
Returns the comment handler that is used to collect comments. |
Enumeration |
getConfigProperties()
Returns the configuration properties. |
String |
getConfigProperty(String key)
Returns the configuration property with the specified key. |
String |
getConfigProperty(String key,
String defaultValue)
Returns the configuration property with the specified key (or the specified default value if there is no such property). |
URL |
getContentBase()
Gets the ContentBase used to resolve relative URLs. |
Locator |
getLocator()
Returns the current locator. |
abstract Object |
getResult()
Returns the parse result. |
abstract FrontendDefaultHandler |
newInstance()
Returns a new instance of the parser. |
void |
setConfigProperty(String key,
String value)
Sets a parser configuration value. |
void |
setDocumentLocator(Locator locator)
Receive an object for locating the origin of SAX document events. |
| Methods inherited from class org.xml.sax.helpers.DefaultHandler |
|---|
characters, endDocument, endElement, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, skippedEntity, startDocument, startElement, startPrefixMapping, unparsedEntityDecl, warning |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String CONTENTBASE_KEY
| Constructor Detail |
|---|
protected FrontendDefaultHandler()
| Method Detail |
|---|
public CommentHandler getCommentHandler()
public void setDocumentLocator(Locator locator)
setDocumentLocator in interface ContentHandlersetDocumentLocator in class DefaultHandlerlocator - the locator.public Locator getLocator()
public String getConfigProperty(String key)
getConfigProperty in interface Configurationkey - the property key.
public String getConfigProperty(String key,
String defaultValue)
getConfigProperty in interface Configurationkey - the property key.defaultValue - the default value.
public void setConfigProperty(String key,
String value)
key - the key.value - the value.public Enumeration getConfigProperties()
getConfigProperties in interface Configurationpublic abstract FrontendDefaultHandler newInstance()
public Iterator findPropertyKeys(String prefix)
findPropertyKeys in interface Configurationprefix - the prefix
public abstract Object getResult()
throws SAXException
SAXException - if something went wrong.public URL getContentBase()
public Object clone()
throws CloneNotSupportedException
clone in interface Configurationclone in class ObjectCloneNotSupportedException - if there is a problem cloning.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||