org.openid4java.util
public class OpenID4JavaDOMParser extends org.cyberneko.html.parsers.DOMParser implements org.cyberneko.html.HTMLTagBalancingListener
This extended parser marks that a(or more) HTML element head
is
ignored while parsing.
Modifier and Type | Field and Description |
---|---|
private boolean |
ignoredHeadStartElement |
fUseEntityResolver2, SYMBOL_TABLE, USE_ENTITY_RESOLVER2, XMLGRAMMAR_POOL
CORE_DOCUMENT_CLASS_NAME, CREATE_CDATA_NODES_FEATURE, CREATE_ENTITY_REF_NODES, CURRENT_ELEMENT_NODE, DEFAULT_DOCUMENT_CLASS_NAME, DEFER_NODE_EXPANSION, DOCUMENT_CLASS_NAME, fBaseURIStack, fCreateCDATANodes, fCreateEntityRefNodes, fCurrentCDATASection, fCurrentCDATASectionIndex, fCurrentEntityDecl, fCurrentNode, fCurrentNodeIndex, fDeferNodeExpansion, fDeferredDocumentImpl, fDeferredEntityDecl, fDocument, fDocumentClassName, fDocumentImpl, fDocumentIndex, fDocumentType, fDocumentTypeIndex, fDOMFilter, fErrorHandler, fFilterReject, fFirstChunk, fInCDATASection, fIncludeComments, fIncludeIgnorableWhitespace, fInDTD, fInDTDExternalSubset, fInEntityRef, fInternalSubset, fNamespaceAware, fRejectedElementDepth, fRoot, fSkippedElemStack, fStorePSVI, fStringBuffer, INCLUDE_COMMENTS_FEATURE, INCLUDE_IGNORABLE_WHITESPACE, NAMESPACES, PSVI_DOCUMENT_CLASS_NAME
fDocumentSource, fDTDContentModelSource, fDTDSource
ENTITY_RESOLVER, ERROR_HANDLER, fConfiguration
Constructor and Description |
---|
OpenID4JavaDOMParser() |
Modifier and Type | Method and Description |
---|---|
static org.xml.sax.InputSource |
createInputSource(java.lang.String s)
Create an InputSource form a String.
|
void |
ignoredEndElement(org.apache.xerces.xni.QName element,
org.apache.xerces.xni.Augmentations augs) |
void |
ignoredStartElement(org.apache.xerces.xni.QName element,
org.apache.xerces.xni.XMLAttributes attrs,
org.apache.xerces.xni.Augmentations augs) |
boolean |
isIgnoredHeadStartElement() |
static java.lang.String |
toXmlString(org.w3c.dom.Document doc)
Transform the document to string.
|
getEntityResolver, getErrorHandler, getFeature, getProperty, getXMLParserConfiguration, parse, parse, setEntityResolver, setErrorHandler, setFeature, setProperty
abort, attributeDecl, characters, comment, createAttrNode, createElementNode, dropDocumentReferences, elementDecl, emptyElement, endAttlist, endCDATA, endConditional, endDocument, endDTD, endElement, endExternalSubset, endGeneralEntity, endParameterEntity, externalEntityDecl, getDocument, getDocumentClassName, handleBaseURI, handleBaseURI, ignorableWhitespace, ignoredCharacters, internalEntityDecl, notationDecl, processingInstruction, reset, setCharacterData, setDocumentClassName, setLocale, startAttlist, startCDATA, startConditional, startDocument, startDTD, startElement, startExternalSubset, startGeneralEntity, startParameterEntity, textDecl, unparsedEntityDecl, xmlDecl
any, element, empty, endContentModel, endGroup, getDocumentSource, getDTDContentModelSource, getDTDSource, occurrence, pcdata, separator, setDocumentSource, setDTDContentModelSource, setDTDSource, startContentModel, startGroup
public OpenID4JavaDOMParser()
public static org.xml.sax.InputSource createInputSource(java.lang.String s)
s
- the Stringjava.lang.NullPointerException
- if s is null.public static java.lang.String toXmlString(org.w3c.dom.Document doc) throws javax.xml.transform.TransformerException
doc
- the documentjavax.xml.transform.TransformerException
- If an unrecoverable error occurs
during the course of the transformation.public boolean isIgnoredHeadStartElement()
public void ignoredEndElement(org.apache.xerces.xni.QName element, org.apache.xerces.xni.Augmentations augs)
ignoredEndElement
in interface org.cyberneko.html.HTMLTagBalancingListener
public void ignoredStartElement(org.apache.xerces.xni.QName element, org.apache.xerces.xni.XMLAttributes attrs, org.apache.xerces.xni.Augmentations augs)
ignoredStartElement
in interface org.cyberneko.html.HTMLTagBalancingListener
Copyright 2006-2008 Sxip Identity Corporation