|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.bibop.xml.utils.XMLExtendedInterpreter
Extended Interpreter class with Lexical events support.
Field Summary | |
static int |
CHARACTERS
|
static int |
COMMENT
Lexical Events |
private org.xml.sax.ContentHandler |
contentHandler
|
private org.xml.sax.DTDHandler |
dtdHandler
|
static int |
END_CDATA
|
static int |
END_DOCUMENT
|
static int |
END_DTD
|
static int |
END_ELEMENT
|
static int |
END_ENTITY
|
static int |
END_PREFIX_MAPPING
|
private org.xml.sax.EntityResolver |
entityResolver
|
private org.xml.sax.ErrorHandler |
errorHandler
|
private java.util.HashMap |
features
|
static int |
IGNORABLE_WHITESPACE
|
private org.xml.sax.ext.LexicalHandler |
lexicalHandler
|
static int |
PROCESSING_INSTRUCTION
|
private java.util.HashMap |
properties
|
static int |
START_CDATA
|
static int |
START_DOCUMENT
|
static int |
START_DTD
|
static int |
START_ELEMENT
|
static int |
START_ENTITY
|
static int |
START_PREFIX_MAPPING
|
Constructor Summary | |
XMLExtendedInterpreter()
|
Method Summary | |
private void |
debug(java.lang.String str)
|
private void |
error(java.lang.String str)
|
org.xml.sax.ContentHandler |
getContentHandler()
return the current content handler |
org.xml.sax.DTDHandler |
getDTDHandler()
return dtdhandler |
org.xml.sax.EntityResolver |
getEntityResolver()
return entity resolver |
org.xml.sax.ErrorHandler |
getErrorHandler()
return error handler |
boolean |
getFeature(java.lang.String name)
get feature |
org.xml.sax.ext.LexicalHandler |
getLexicalHandler()
return lexical handler |
java.lang.Object |
getProperty(java.lang.String name)
get property |
void |
parse(org.xml.sax.InputSource in)
parse |
void |
parse(java.io.InputStream stream)
parse |
void |
parse(java.lang.String systemId)
parse |
void |
setContentHandler(org.xml.sax.ContentHandler handler)
set the content handler |
void |
setDTDHandler(org.xml.sax.DTDHandler handler)
set the dtd handler |
void |
setEntityResolver(org.xml.sax.EntityResolver resolver)
set the entity resolver |
void |
setErrorHandler(org.xml.sax.ErrorHandler handler)
set the error handler |
void |
setFeature(java.lang.String name,
boolean value)
set feature |
void |
setLexicalHandler(org.xml.sax.ext.LexicalHandler handler)
set the lexical handler |
void |
setProperty(java.lang.String name,
java.lang.Object value)
set property |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int START_DOCUMENT
public static final int END_DOCUMENT
public static final int START_PREFIX_MAPPING
public static final int END_PREFIX_MAPPING
public static final int START_ELEMENT
public static final int END_ELEMENT
public static final int CHARACTERS
public static final int IGNORABLE_WHITESPACE
public static final int PROCESSING_INSTRUCTION
public static final int COMMENT
public static final int START_CDATA
public static final int END_CDATA
public static final int START_DTD
public static final int END_DTD
public static final int START_ENTITY
public static final int END_ENTITY
private org.xml.sax.ContentHandler contentHandler
private org.xml.sax.DTDHandler dtdHandler
private org.xml.sax.EntityResolver entityResolver
private org.xml.sax.ErrorHandler errorHandler
private org.xml.sax.ext.LexicalHandler lexicalHandler
private java.util.HashMap features
private java.util.HashMap properties
Constructor Detail |
public XMLExtendedInterpreter()
Method Detail |
public org.xml.sax.ContentHandler getContentHandler()
getContentHandler
in interface org.xml.sax.XMLReader
public org.xml.sax.DTDHandler getDTDHandler()
getDTDHandler
in interface org.xml.sax.XMLReader
public org.xml.sax.EntityResolver getEntityResolver()
getEntityResolver
in interface org.xml.sax.XMLReader
public org.xml.sax.ErrorHandler getErrorHandler()
getErrorHandler
in interface org.xml.sax.XMLReader
public org.xml.sax.ext.LexicalHandler getLexicalHandler()
public void setContentHandler(org.xml.sax.ContentHandler handler)
setContentHandler
in interface org.xml.sax.XMLReader
handler
- public void setDTDHandler(org.xml.sax.DTDHandler handler)
setDTDHandler
in interface org.xml.sax.XMLReader
handler
- public void setEntityResolver(org.xml.sax.EntityResolver resolver)
setEntityResolver
in interface org.xml.sax.XMLReader
resolver
- public void setErrorHandler(org.xml.sax.ErrorHandler handler)
setErrorHandler
in interface org.xml.sax.XMLReader
handler
- public void setLexicalHandler(org.xml.sax.ext.LexicalHandler handler)
handler
- public boolean getFeature(java.lang.String name) throws org.xml.sax.SAXNotRecognizedException, org.xml.sax.SAXNotSupportedException
getFeature
in interface org.xml.sax.XMLReader
name
-
SAXNotRecognizedException,
- SAXNotSupportedException
org.xml.sax.SAXNotRecognizedException
org.xml.sax.SAXNotSupportedException
public java.lang.Object getProperty(java.lang.String name) throws org.xml.sax.SAXNotRecognizedException, org.xml.sax.SAXNotSupportedException
getProperty
in interface org.xml.sax.XMLReader
name
-
SAXNotRecognizedException,
- SAXNotSupportedException
org.xml.sax.SAXNotRecognizedException
org.xml.sax.SAXNotSupportedException
public void setFeature(java.lang.String name, boolean value) throws org.xml.sax.SAXNotRecognizedException, org.xml.sax.SAXNotSupportedException
setFeature
in interface org.xml.sax.XMLReader
name
- value
-
SAXNotRecognizedException,
- SAXNotSupportedException
org.xml.sax.SAXNotRecognizedException
org.xml.sax.SAXNotSupportedException
public void setProperty(java.lang.String name, java.lang.Object value) throws org.xml.sax.SAXNotRecognizedException, org.xml.sax.SAXNotSupportedException
setProperty
in interface org.xml.sax.XMLReader
name
- value
-
SAXNotRecognizedException,
- SAXNotSupportedException
org.xml.sax.SAXNotRecognizedException
org.xml.sax.SAXNotSupportedException
public void parse(java.lang.String systemId) throws java.io.IOException, org.xml.sax.SAXException
parse
in interface org.xml.sax.XMLReader
systemId
-
IOException,
- SAXException
java.io.IOException
org.xml.sax.SAXException
public void parse(org.xml.sax.InputSource in) throws java.io.IOException, org.xml.sax.SAXException
parse
in interface org.xml.sax.XMLReader
in
-
IOException,
- SAXException
java.io.IOException
org.xml.sax.SAXException
public void parse(java.io.InputStream stream) throws java.io.IOException, org.xml.sax.SAXException
stream
-
IOException,
- SAXException
java.io.IOException
org.xml.sax.SAXException
private void debug(java.lang.String str)
private void error(java.lang.String str)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |