com.bluecast.xml

Class Piccolo

public class Piccolo extends Object implements Parser, Locator, XMLReader

Piccolo is a small, high-performance SAX1 and SAX2 XML parser. As per the SAX2 specification, namespace handling is on by default. You can improve performance by turning it off. Note that if used in SAX1 mode, namespace handling is automatically turned off.
Field Summary
static shortANY
static shortATTLIST_START
static shortCDATA
static shortCLOSE_TAG
static shortCOMMA
static shortCOMMENT
static shortCONDITIONAL_START
static shortDOUBLE_RBRACKET_END
static shortDTD_START
static shortDTD_START_SKIPEXTERNAL
static shortELEMENT_DECL_START
static shortEMPTY
static shortEMPTY_TAG
static shortENTITIES
static shortENTITY
static shortENTITY_DECL_START
static shortENTITY_END
static shortENTITY_REF
static shortENUMERATION
static shortEQ
static shortEXTERNAL_ENTITY_REF
static shortFIXED
static shortID
static shortIDREF
static shortIDREFS
static shortIGNORE
static shortIGNORED_CONDITIONAL_START
static shortIMPLIED
static shortINCLUDE
static shortINTERNAL_ENTITY_REF
static shortLBRACKET
static shortLPAREN
static shortMODIFIER
static shortNAME
static shortNDATA
static shortNMTOKEN
static shortNMTOKENS
static shortNOTATION
static shortNOTATION_START
static shortOPEN_TAG
static shortPCDATA
static shortPERCENT
static shortPI
static shortPIPE
static shortPLUS
static shortPREFIXED_NAME
static shortPUBLIC
static shortQUESTION
static shortRBRACKET_END
static shortREQUIRED
static shortRPAREN
static shortSKIPPED_ENTITY_REF
static shortSTAR
static shortSTRING
static shortSYSTEM
static shortTAG_END
static shortUNPREFIXED_NAME
static shortWHITESPACE
static shortXML_DOC_DECL
static shortXML_DOC_OR_TEXT_DECL
static shortXML_TEXT_DECL
static shortYYERRCODE
Constructor Summary
Piccolo()
Piccolo(Piccolo template)
Create an instance with the same configuration as the given instance.
Method Summary
intgetColumnNumber()
ContentHandlergetContentHandler()
SAX2 methods
DTDHandlergetDTDHandler()
StringgetEncoding()
EntityResolvergetEntityResolver()
ErrorHandlergetErrorHandler()
booleangetFeature(String name)
intgetLineNumber()
ObjectgetProperty(String name)
StringgetPublicId()
LocatorgetStartLocator()
StringgetSystemId()
StringgetVersion()
voidparse(InputSource source)
Methods common to both SAX1 and SAX2
voidparse(String sysID)
voidsetContentHandler(ContentHandler handler)
voidsetDebug(boolean debug)
voidsetDocumentHandler(DocumentHandler handler)
SAX1 methods
voidsetDTDHandler(DTDHandler handler)
voidsetEntityResolver(EntityResolver resolver)
voidsetErrorHandler(ErrorHandler handler)
voidsetFeature(String name, boolean value)
voidsetLocale(Locale locale)
voidsetProperty(String name, Object value)

Field Detail

ANY

public static final short ANY

ATTLIST_START

public static final short ATTLIST_START

CDATA

public static final short CDATA

CLOSE_TAG

public static final short CLOSE_TAG

COMMA

public static final short COMMA

COMMENT

public static final short COMMENT

CONDITIONAL_START

public static final short CONDITIONAL_START

DOUBLE_RBRACKET_END

public static final short DOUBLE_RBRACKET_END

DTD_START

public static final short DTD_START

DTD_START_SKIPEXTERNAL

public static final short DTD_START_SKIPEXTERNAL

ELEMENT_DECL_START

public static final short ELEMENT_DECL_START

EMPTY

public static final short EMPTY

EMPTY_TAG

public static final short EMPTY_TAG

ENTITIES

public static final short ENTITIES

ENTITY

public static final short ENTITY

ENTITY_DECL_START

public static final short ENTITY_DECL_START

ENTITY_END

public static final short ENTITY_END

ENTITY_REF

public static final short ENTITY_REF

ENUMERATION

public static final short ENUMERATION

EQ

public static final short EQ

EXTERNAL_ENTITY_REF

public static final short EXTERNAL_ENTITY_REF

FIXED

public static final short FIXED

ID

public static final short ID

IDREF

public static final short IDREF

IDREFS

public static final short IDREFS

IGNORE

public static final short IGNORE

IGNORED_CONDITIONAL_START

public static final short IGNORED_CONDITIONAL_START

IMPLIED

public static final short IMPLIED

INCLUDE

public static final short INCLUDE

INTERNAL_ENTITY_REF

public static final short INTERNAL_ENTITY_REF

LBRACKET

public static final short LBRACKET

LPAREN

public static final short LPAREN

MODIFIER

public static final short MODIFIER

NAME

public static final short NAME

NDATA

public static final short NDATA

NMTOKEN

public static final short NMTOKEN

NMTOKENS

public static final short NMTOKENS

NOTATION

public static final short NOTATION

NOTATION_START

public static final short NOTATION_START

OPEN_TAG

public static final short OPEN_TAG

PCDATA

public static final short PCDATA

PERCENT

public static final short PERCENT

PI

public static final short PI

PIPE

public static final short PIPE

PLUS

public static final short PLUS

PREFIXED_NAME

public static final short PREFIXED_NAME

PUBLIC

public static final short PUBLIC

QUESTION

public static final short QUESTION

RBRACKET_END

public static final short RBRACKET_END

REQUIRED

public static final short REQUIRED

RPAREN

public static final short RPAREN

SKIPPED_ENTITY_REF

public static final short SKIPPED_ENTITY_REF

STAR

public static final short STAR

STRING

public static final short STRING

SYSTEM

public static final short SYSTEM

TAG_END

public static final short TAG_END

UNPREFIXED_NAME

public static final short UNPREFIXED_NAME

WHITESPACE

public static final short WHITESPACE

XML_DOC_DECL

public static final short XML_DOC_DECL

XML_DOC_OR_TEXT_DECL

public static final short XML_DOC_OR_TEXT_DECL

XML_TEXT_DECL

public static final short XML_TEXT_DECL

YYERRCODE

public static final short YYERRCODE

Constructor Detail

Piccolo

public Piccolo()

Piccolo

public Piccolo(Piccolo template)
Create an instance with the same configuration as the given instance. ContentHandler, DTDHandler, etc. will not be copied.

Method Detail

getColumnNumber

public int getColumnNumber()

getContentHandler

public ContentHandler getContentHandler()
SAX2 methods

getDTDHandler

public DTDHandler getDTDHandler()

getEncoding

public String getEncoding()

getEntityResolver

public EntityResolver getEntityResolver()

getErrorHandler

public ErrorHandler getErrorHandler()

getFeature

public boolean getFeature(String name)

getLineNumber

public int getLineNumber()

getProperty

public Object getProperty(String name)

getPublicId

public String getPublicId()

getStartLocator

public Locator getStartLocator()

getSystemId

public String getSystemId()

getVersion

public String getVersion()

parse

public void parse(InputSource source)
Methods common to both SAX1 and SAX2

parse

public void parse(String sysID)

setContentHandler

public void setContentHandler(ContentHandler handler)

setDebug

public void setDebug(boolean debug)

setDocumentHandler

public void setDocumentHandler(DocumentHandler handler)
SAX1 methods

setDTDHandler

public void setDTDHandler(DTDHandler handler)

setEntityResolver

public void setEntityResolver(EntityResolver resolver)

setErrorHandler

public void setErrorHandler(ErrorHandler handler)

setFeature

public void setFeature(String name, boolean value)

setLocale

public void setLocale(Locale locale)

setProperty

public void setProperty(String name, Object value)