public class Piccolo
extends java.lang.Object
implements org.xml.sax.Parser, org.xml.sax.Locator, org.xml.sax.XMLReader
Modifier and Type | Field and Description |
---|---|
static short |
ANY |
static short |
ATTLIST_START |
static short |
CDATA |
static short |
CLOSE_TAG |
static short |
COMMA |
static short |
COMMENT |
static short |
CONDITIONAL_START |
static short |
DOUBLE_RBRACKET_END |
static short |
DTD_START |
static short |
DTD_START_SKIPEXTERNAL |
static short |
ELEMENT_DECL_START |
static short |
EMPTY |
static short |
EMPTY_TAG |
static short |
ENTITIES |
static short |
ENTITY |
static short |
ENTITY_DECL_START |
static short |
ENTITY_END |
static short |
ENTITY_REF |
static short |
ENUMERATION |
static short |
EQ |
static short |
EXTERNAL_ENTITY_REF |
static short |
FIXED |
static short |
ID |
static short |
IDREF |
static short |
IDREFS |
static short |
IGNORE |
static short |
IGNORED_CONDITIONAL_START |
static short |
IMPLIED |
static short |
INCLUDE |
static short |
INTERNAL_ENTITY_REF |
static short |
LBRACKET |
static short |
LPAREN |
static short |
MODIFIER |
static short |
NAME |
static short |
NDATA |
static short |
NMTOKEN |
static short |
NMTOKENS |
static short |
NOTATION |
static short |
NOTATION_START |
static short |
OPEN_TAG |
static short |
PCDATA |
static short |
PERCENT |
static short |
PI |
static short |
PIPE |
static short |
PLUS |
static short |
PREFIXED_NAME |
static short |
PUBLIC |
static short |
QUESTION |
static short |
RBRACKET_END |
static short |
REQUIRED |
static short |
RPAREN |
static short |
SKIPPED_ENTITY_REF |
static short |
STAR |
static short |
STRING |
static short |
SYSTEM |
static short |
TAG_END |
static short |
UNPREFIXED_NAME |
static short |
WHITESPACE |
static short |
XML_DOC_DECL |
static short |
XML_DOC_OR_TEXT_DECL |
static short |
XML_TEXT_DECL |
static short |
YYERRCODE |
Constructor and Description |
---|
Piccolo() |
Piccolo(Piccolo template)
Create an instance with the same configuration
as the given instance.
|
Modifier and Type | Method and Description |
---|---|
int |
getColumnNumber() |
org.xml.sax.ContentHandler |
getContentHandler()
SAX2 methods
|
org.xml.sax.DTDHandler |
getDTDHandler() |
java.lang.String |
getEncoding() |
org.xml.sax.EntityResolver |
getEntityResolver() |
org.xml.sax.ErrorHandler |
getErrorHandler() |
boolean |
getFeature(java.lang.String name) |
int |
getLineNumber() |
java.lang.Object |
getProperty(java.lang.String name) |
java.lang.String |
getPublicId() |
org.xml.sax.Locator |
getStartLocator() |
java.lang.String |
getSystemId() |
java.lang.String |
getVersion() |
void |
parse(org.xml.sax.InputSource source)
Methods common to both SAX1 and SAX2
|
void |
parse(java.lang.String sysID) |
void |
setContentHandler(org.xml.sax.ContentHandler handler) |
void |
setDebug(boolean debug) |
void |
setDocumentHandler(org.xml.sax.DocumentHandler handler)
SAX1 methods
|
void |
setDTDHandler(org.xml.sax.DTDHandler handler) |
void |
setEntityResolver(org.xml.sax.EntityResolver resolver) |
void |
setErrorHandler(org.xml.sax.ErrorHandler handler) |
void |
setFeature(java.lang.String name,
boolean value) |
void |
setLocale(java.util.Locale locale) |
void |
setProperty(java.lang.String name,
java.lang.Object value) |
public static final short CDATA
public static final short TAG_END
public static final short PI
public static final short NAME
public static final short STRING
public static final short EQ
public static final short OPEN_TAG
public static final short CLOSE_TAG
public static final short EMPTY_TAG
public static final short WHITESPACE
public static final short DTD_START
public static final short DTD_START_SKIPEXTERNAL
public static final short SYSTEM
public static final short PUBLIC
public static final short REQUIRED
public static final short IMPLIED
public static final short FIXED
public static final short LPAREN
public static final short RPAREN
public static final short LBRACKET
public static final short PIPE
public static final short ENTITY_DECL_START
public static final short ATTLIST_START
public static final short NOTATION_START
public static final short RBRACKET_END
public static final short DOUBLE_RBRACKET_END
public static final short PERCENT
public static final short ENUMERATION
public static final short NOTATION
public static final short ID
public static final short IDREF
public static final short IDREFS
public static final short ENTITY
public static final short ENTITIES
public static final short NMTOKEN
public static final short NMTOKENS
public static final short ENTITY_REF
public static final short ENTITY_END
public static final short INTERNAL_ENTITY_REF
public static final short EXTERNAL_ENTITY_REF
public static final short SKIPPED_ENTITY_REF
public static final short PREFIXED_NAME
public static final short UNPREFIXED_NAME
public static final short NDATA
public static final short COMMENT
public static final short CONDITIONAL_START
public static final short IGNORED_CONDITIONAL_START
public static final short INCLUDE
public static final short IGNORE
public static final short MODIFIER
public static final short PCDATA
public static final short ELEMENT_DECL_START
public static final short EMPTY
public static final short ANY
public static final short STAR
public static final short COMMA
public static final short QUESTION
public static final short PLUS
public static final short XML_DOC_DECL
public static final short XML_TEXT_DECL
public static final short XML_DOC_OR_TEXT_DECL
public static final short YYERRCODE
public Piccolo()
public Piccolo(Piccolo template)
public void setDebug(boolean debug)
public void parse(org.xml.sax.InputSource source) throws java.io.IOException, org.xml.sax.SAXException
parse
in interface org.xml.sax.Parser
parse
in interface org.xml.sax.XMLReader
java.io.IOException
org.xml.sax.SAXException
public void parse(java.lang.String sysID) throws java.io.IOException, org.xml.sax.SAXException
parse
in interface org.xml.sax.Parser
parse
in interface org.xml.sax.XMLReader
java.io.IOException
org.xml.sax.SAXException
public void setDocumentHandler(org.xml.sax.DocumentHandler handler)
setDocumentHandler
in interface org.xml.sax.Parser
public void setDTDHandler(org.xml.sax.DTDHandler handler)
setDTDHandler
in interface org.xml.sax.Parser
setDTDHandler
in interface org.xml.sax.XMLReader
public void setEntityResolver(org.xml.sax.EntityResolver resolver)
setEntityResolver
in interface org.xml.sax.Parser
setEntityResolver
in interface org.xml.sax.XMLReader
public void setErrorHandler(org.xml.sax.ErrorHandler handler)
setErrorHandler
in interface org.xml.sax.Parser
setErrorHandler
in interface org.xml.sax.XMLReader
public void setLocale(java.util.Locale locale) throws org.xml.sax.SAXException
setLocale
in interface org.xml.sax.Parser
org.xml.sax.SAXException
public int getColumnNumber()
getColumnNumber
in interface org.xml.sax.Locator
public int getLineNumber()
getLineNumber
in interface org.xml.sax.Locator
public java.lang.String getPublicId()
getPublicId
in interface org.xml.sax.Locator
public java.lang.String getSystemId()
getSystemId
in interface org.xml.sax.Locator
public org.xml.sax.Locator getStartLocator()
public java.lang.String getVersion()
public java.lang.String getEncoding()
public org.xml.sax.ContentHandler getContentHandler()
getContentHandler
in interface org.xml.sax.XMLReader
public void setContentHandler(org.xml.sax.ContentHandler handler)
setContentHandler
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 boolean getFeature(java.lang.String name) throws org.xml.sax.SAXNotSupportedException, org.xml.sax.SAXNotRecognizedException
getFeature
in interface org.xml.sax.XMLReader
org.xml.sax.SAXNotSupportedException
org.xml.sax.SAXNotRecognizedException
public void setFeature(java.lang.String name, boolean value) throws org.xml.sax.SAXNotSupportedException, org.xml.sax.SAXNotRecognizedException
setFeature
in interface org.xml.sax.XMLReader
org.xml.sax.SAXNotSupportedException
org.xml.sax.SAXNotRecognizedException
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
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
org.xml.sax.SAXNotRecognizedException
org.xml.sax.SAXNotSupportedException