AFTER_ATTRIBUTE_NAME, AFTER_ATTRIBUTE_VALUE_QUOTED, AFTER_DOCTYPE_NAME, AFTER_DOCTYPE_PUBLIC_IDENTIFIER, AFTER_DOCTYPE_PUBLIC_KEYWORD, AFTER_DOCTYPE_SYSTEM_IDENTIFIER, AFTER_DOCTYPE_SYSTEM_KEYWORD, ampersandLocation, ATTRIBUTE_NAME, ATTRIBUTE_VALUE_DOUBLE_QUOTED, ATTRIBUTE_VALUE_SINGLE_QUOTED, ATTRIBUTE_VALUE_UNQUOTED, attributeName, BEFORE_ATTRIBUTE_NAME, BEFORE_ATTRIBUTE_VALUE, BEFORE_DOCTYPE_NAME, BEFORE_DOCTYPE_PUBLIC_IDENTIFIER, BEFORE_DOCTYPE_SYSTEM_IDENTIFIER, BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS, BOGUS_COMMENT, BOGUS_COMMENT_HYPHEN, BOGUS_DOCTYPE, CDATA_RSQB, CDATA_RSQB_RSQB, CDATA_SECTION, CDATA_START, CHARACTER_REFERENCE_HILO_LOOKUP, CHARACTER_REFERENCE_TAIL, CLOSE_TAG_OPEN, COMMENT, COMMENT_END, COMMENT_END_BANG, COMMENT_END_DASH, COMMENT_START, COMMENT_START_DASH, confident, CONSUME_CHARACTER_REFERENCE, CONSUME_NCR, cstart, currentBufferGlobalOffset, DATA, DECIMAL_NRC_LOOP, DOCTYPE, DOCTYPE_NAME, DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED, DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED, DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED, DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED, DOCTYPE_UBLIC, DOCTYPE_YSTEM, encodingDeclarationHandler, endTag, endTagExpectation, errorHandler, HANDLE_NCR_VALUE, HANDLE_NCR_VALUE_RECONSUME, HEX_NCR_LOOP, html4, index, lastCR, MARKUP_DECLARATION_HYPHEN, MARKUP_DECLARATION_OCTYPE, MARKUP_DECLARATION_OPEN, NON_DATA_END_TAG_NAME, PLAINTEXT, RAWTEXT, RAWTEXT_RCDATA_LESS_THAN_SIGN, RCDATA, SCRIPT_DATA, SCRIPT_DATA_DOUBLE_ESCAPE_END, SCRIPT_DATA_DOUBLE_ESCAPE_START, SCRIPT_DATA_DOUBLE_ESCAPED, SCRIPT_DATA_DOUBLE_ESCAPED_DASH, SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH, SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN, SCRIPT_DATA_ESCAPE_START, SCRIPT_DATA_ESCAPE_START_DASH, SCRIPT_DATA_ESCAPED, SCRIPT_DATA_ESCAPED_DASH, SCRIPT_DATA_ESCAPED_DASH_DASH, SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN, SCRIPT_DATA_LESS_THAN_SIGN, SELF_CLOSING_START_TAG, stateSave, TAG_NAME, TAG_OPEN, tokenHandler, value| Constructor and Description |
|---|
ErrorReportingTokenizer(TokenHandler tokenHandler) |
ErrorReportingTokenizer(TokenHandler tokenHandler,
boolean newAttributesEachTime) |
| Modifier and Type | Method and Description |
|---|---|
protected char |
checkChar(char[] buf,
int pos) |
protected void |
errAstralNonCharacter(int ch) |
protected void |
errAttributeValueMissing() |
protected void |
errBadCharAfterLt(char c) |
protected void |
errBadCharBeforeAttributeNameOrNull(char c) |
protected void |
errBogusComment() |
protected void |
errBogusDoctype() |
protected void |
errCharRefLacksSemicolon() |
protected void |
errConsecutiveHyphens() |
protected void |
errDuplicateAttribute() |
protected void |
errEofAfterLt() |
protected void |
errEofInAttributeName() |
protected void |
errEofInAttributeValue() |
protected void |
errEofInComment() |
protected void |
errEofInDoctype() |
protected void |
errEofInEndTag() |
protected void |
errEofInPublicId() |
protected void |
errEofInSystemId() |
protected void |
errEofInTagName() |
protected void |
errEofWithoutGt() |
protected void |
errEqualsSignBeforeAttributeName() |
protected void |
errExpectedPublicId() |
protected void |
errExpectedSystemId() |
protected void |
errGarbageAfterLtSlash() |
protected void |
errGtInPublicId() |
protected void |
errGtInSystemId() |
protected void |
errHtml4LtSlashInRcdata(char folded) |
protected void |
errHtml4NonNameInUnquotedAttribute(char c) |
protected void |
errHtml4XmlVoidSyntax() |
protected void |
errHyphenHyphenBang() |
protected void |
errLtGt() |
protected void |
errLtOrEqualsOrGraveInUnquotedAttributeOrNull(char c) |
protected void |
errLtSlashGt() |
protected void |
errMissingSpaceBeforeDoctypeName() |
protected void |
errNamelessDoctype() |
protected void |
errNcrControlChar() |
protected char |
errNcrControlChar(char ch) |
protected void |
errNcrCr() |
protected void |
errNcrInC1Range() |
protected char |
errNcrNonCharacter(char ch) |
protected void |
errNcrOutOfRange() |
protected void |
errNcrSurrogate() |
protected void |
errNcrUnassigned() |
protected void |
errNcrZero() |
protected void |
errNoDigitsInNCR() |
protected void |
errNoNamedCharacterMatch() |
protected void |
errNoSpaceBetweenAttributes() |
protected void |
errNoSpaceBetweenDoctypePublicKeywordAndQuote() |
protected void |
errNoSpaceBetweenDoctypeSystemKeywordAndQuote() |
protected void |
errNoSpaceBetweenPublicAndSystemIds() |
protected void |
errNotSemicolonTerminated() |
protected void |
errPrematureEndOfComment() |
protected void |
errProcessingInstruction() |
protected void |
errQuoteBeforeAttributeName(char c) |
protected void |
errQuoteOrLtInAttributeNameOrNull(char c) |
protected void |
errSlashNotFollowedByGt() |
protected void |
errUnescapedAmpersandInterpretedAsCharacterReference() |
protected void |
errUnquotedAttributeValOrNull(char c) |
protected void |
errWarnLtSlashInRcdata() |
protected void |
flushChars(char[] buf,
int pos)
Flushes coalesced character tokens.
|
int |
getCol()
Returns the col.
|
int |
getColumnNumber() |
int |
getLine()
Returns the line.
|
int |
getLineNumber() |
boolean |
isAlreadyComplainedAboutNonAscii()
Returns the alreadyComplainedAboutNonAscii.
|
boolean |
isNextCharOnNewLine()
Returns the nextCharOnNewLine.
|
protected void |
maybeErrAttributesOnEndTag(HtmlAttributes attrs) |
protected void |
maybeErrSlashInEndTag(boolean selfClosing) |
protected void |
maybeWarnPrivateUse(char ch) |
protected void |
maybeWarnPrivateUseAstral() |
void |
note(String profile,
String message)
Reports on an event based on profile selected.
|
protected void |
noteAttributeWithoutValue() |
protected void |
noteUnquotedAttributeValue() |
void |
setContentNonXmlCharPolicy(XmlViolationPolicy contentNonXmlCharPolicy)
Sets the contentNonXmlCharPolicy.
|
void |
setErrorProfile(HashMap<String,String> errorProfileMap)
Sets the errorProfile.
|
void |
setTransitionBaseOffset(int offset)
Sets an offset to be added to the position reported to
TransitionHandler. |
void |
setTransitionHandler(TransitionHandler transitionHandler)
Sets the transitionHandler.
|
protected void |
silentCarriageReturn() |
protected void |
silentLineFeed() |
protected void |
startErrorReporting() |
protected int |
transition(int from,
int to,
boolean reconsume,
int pos) |
becomeConfident, end, eof, err, errTreeBuilder, fatal, getErrorHandler, getPublicId, getSystemId, initializeWithoutStarting, initLocation, internalEncodingDeclaration, isInDataState, isMappingLangToXmlLang, isPrevCR, loadState, notifyAboutMetaBoundary, requestSuspension, resetToDataState, setCommentPolicy, setContentSpacePolicy, setEncodingDeclarationHandler, setErrorHandler, setHtml4ModeCompatibleWithXhtml1Schemata, setInterner, setLineNumber, setMappingLangToXmlLang, setNamePolicy, setStateAndEndTagExpectation, setStateAndEndTagExpectation, setXmlnsPolicy, start, strBufToString, tokenizeBuffer, warnpublic ErrorReportingTokenizer(TokenHandler tokenHandler, boolean newAttributesEachTime)
tokenHandler - newAttributesEachTime - public ErrorReportingTokenizer(TokenHandler tokenHandler)
tokenHandler - public int getLineNumber()
getLineNumber in interface LocatorgetLineNumber in class TokenizerLocator.getLineNumber()public int getColumnNumber()
getColumnNumber in interface LocatorgetColumnNumber in class TokenizerLocator.getColumnNumber()public void setContentNonXmlCharPolicy(XmlViolationPolicy contentNonXmlCharPolicy)
setContentNonXmlCharPolicy in class TokenizercontentNonXmlCharPolicy - the contentNonXmlCharPolicy to setpublic void setErrorProfile(HashMap<String,String> errorProfileMap)
errorProfile - public void note(String profile, String message) throws SAXException
profile - the profile this message belongs tomessage - the message itselfSAXExceptionprotected void startErrorReporting()
throws SAXException
startErrorReporting in class TokenizerSAXExceptionprotected void silentCarriageReturn()
silentCarriageReturn in class Tokenizerprotected void silentLineFeed()
silentLineFeed in class Tokenizerpublic int getLine()
public boolean isNextCharOnNewLine()
isNextCharOnNewLine in class Tokenizerpublic boolean isAlreadyComplainedAboutNonAscii()
isAlreadyComplainedAboutNonAscii in class Tokenizerprotected void flushChars(char[] buf,
int pos)
throws SAXException
flushChars in class Tokenizerbuf - TODOpos - TODOSAXExceptionprotected char checkChar(char[] buf,
int pos)
throws SAXException
checkChar in class TokenizerSAXExceptionprotected int transition(int from,
int to,
boolean reconsume,
int pos)
throws SAXException
transition in class TokenizerSAXExceptionTokenizer.transition(int, int, boolean,
int)protected void errGarbageAfterLtSlash()
throws SAXException
errGarbageAfterLtSlash in class TokenizerSAXExceptionprotected void errLtSlashGt()
throws SAXException
errLtSlashGt in class TokenizerSAXExceptionprotected void errWarnLtSlashInRcdata()
throws SAXException
errWarnLtSlashInRcdata in class TokenizerSAXExceptionprotected void errHtml4LtSlashInRcdata(char folded)
throws SAXException
errHtml4LtSlashInRcdata in class TokenizerSAXExceptionprotected void errCharRefLacksSemicolon()
throws SAXException
errCharRefLacksSemicolon in class TokenizerSAXExceptionprotected void errNoDigitsInNCR()
throws SAXException
errNoDigitsInNCR in class TokenizerSAXExceptionprotected void errGtInSystemId()
throws SAXException
errGtInSystemId in class TokenizerSAXExceptionprotected void errGtInPublicId()
throws SAXException
errGtInPublicId in class TokenizerSAXExceptionprotected void errNamelessDoctype()
throws SAXException
errNamelessDoctype in class TokenizerSAXExceptionprotected void errConsecutiveHyphens()
throws SAXException
errConsecutiveHyphens in class TokenizerSAXExceptionprotected void errPrematureEndOfComment()
throws SAXException
errPrematureEndOfComment in class TokenizerSAXExceptionprotected void errBogusComment()
throws SAXException
errBogusComment in class TokenizerSAXExceptionprotected void errUnquotedAttributeValOrNull(char c)
throws SAXException
errUnquotedAttributeValOrNull in class TokenizerSAXExceptionprotected void errSlashNotFollowedByGt()
throws SAXException
errSlashNotFollowedByGt in class TokenizerSAXExceptionprotected void errHtml4XmlVoidSyntax()
throws SAXException
errHtml4XmlVoidSyntax in class TokenizerSAXExceptionprotected void errNoSpaceBetweenAttributes()
throws SAXException
errNoSpaceBetweenAttributes in class TokenizerSAXExceptionprotected void errHtml4NonNameInUnquotedAttribute(char c)
throws SAXException
errHtml4NonNameInUnquotedAttribute in class TokenizerSAXExceptionprotected void errLtOrEqualsOrGraveInUnquotedAttributeOrNull(char c)
throws SAXException
errLtOrEqualsOrGraveInUnquotedAttributeOrNull in class TokenizerSAXExceptionprotected void errAttributeValueMissing()
throws SAXException
errAttributeValueMissing in class TokenizerSAXExceptionprotected void errBadCharBeforeAttributeNameOrNull(char c)
throws SAXException
errBadCharBeforeAttributeNameOrNull in class TokenizerSAXExceptionprotected void errEqualsSignBeforeAttributeName()
throws SAXException
errEqualsSignBeforeAttributeName in class TokenizerSAXExceptionprotected void errBadCharAfterLt(char c)
throws SAXException
errBadCharAfterLt in class TokenizerSAXExceptionprotected void errLtGt()
throws SAXException
errLtGt in class TokenizerSAXExceptionprotected void errProcessingInstruction()
throws SAXException
errProcessingInstruction in class TokenizerSAXExceptionprotected void errUnescapedAmpersandInterpretedAsCharacterReference()
throws SAXException
errUnescapedAmpersandInterpretedAsCharacterReference in class TokenizerSAXExceptionprotected void errNotSemicolonTerminated()
throws SAXException
errNotSemicolonTerminated in class TokenizerSAXExceptionprotected void errNoNamedCharacterMatch()
throws SAXException
errNoNamedCharacterMatch in class TokenizerSAXExceptionprotected void errQuoteBeforeAttributeName(char c)
throws SAXException
errQuoteBeforeAttributeName in class TokenizerSAXExceptionprotected void errQuoteOrLtInAttributeNameOrNull(char c)
throws SAXException
errQuoteOrLtInAttributeNameOrNull in class TokenizerSAXExceptionprotected void errExpectedPublicId()
throws SAXException
errExpectedPublicId in class TokenizerSAXExceptionprotected void errBogusDoctype()
throws SAXException
errBogusDoctype in class TokenizerSAXExceptionprotected void maybeWarnPrivateUseAstral()
throws SAXException
maybeWarnPrivateUseAstral in class TokenizerSAXExceptionprotected void maybeWarnPrivateUse(char ch)
throws SAXException
maybeWarnPrivateUse in class TokenizerSAXExceptionprotected void maybeErrAttributesOnEndTag(HtmlAttributes attrs) throws SAXException
maybeErrAttributesOnEndTag in class TokenizerSAXExceptionprotected void maybeErrSlashInEndTag(boolean selfClosing)
throws SAXException
maybeErrSlashInEndTag in class TokenizerSAXExceptionprotected char errNcrNonCharacter(char ch)
throws SAXException
errNcrNonCharacter in class TokenizerSAXExceptionprotected void errAstralNonCharacter(int ch)
throws SAXException
errAstralNonCharacter in class TokenizerSAXExceptionTokenizer.errAstralNonCharacter(int)protected void errNcrSurrogate()
throws SAXException
errNcrSurrogate in class TokenizerSAXExceptionprotected char errNcrControlChar(char ch)
throws SAXException
errNcrControlChar in class TokenizerSAXExceptionprotected void errNcrCr()
throws SAXException
errNcrCr in class TokenizerSAXExceptionprotected void errNcrInC1Range()
throws SAXException
errNcrInC1Range in class TokenizerSAXExceptionprotected void errEofInPublicId()
throws SAXException
errEofInPublicId in class TokenizerSAXExceptionprotected void errEofInComment()
throws SAXException
errEofInComment in class TokenizerSAXExceptionprotected void errEofInDoctype()
throws SAXException
errEofInDoctype in class TokenizerSAXExceptionprotected void errEofInAttributeValue()
throws SAXException
errEofInAttributeValue in class TokenizerSAXExceptionprotected void errEofInAttributeName()
throws SAXException
errEofInAttributeName in class TokenizerSAXExceptionprotected void errEofWithoutGt()
throws SAXException
errEofWithoutGt in class TokenizerSAXExceptionprotected void errEofInTagName()
throws SAXException
errEofInTagName in class TokenizerSAXExceptionprotected void errEofInEndTag()
throws SAXException
errEofInEndTag in class TokenizerSAXExceptionprotected void errEofAfterLt()
throws SAXException
errEofAfterLt in class TokenizerSAXExceptionprotected void errNcrOutOfRange()
throws SAXException
errNcrOutOfRange in class TokenizerSAXExceptionprotected void errNcrUnassigned()
throws SAXException
errNcrUnassigned in class TokenizerSAXExceptionprotected void errDuplicateAttribute()
throws SAXException
errDuplicateAttribute in class TokenizerSAXExceptionprotected void errEofInSystemId()
throws SAXException
errEofInSystemId in class TokenizerSAXExceptionprotected void errExpectedSystemId()
throws SAXException
errExpectedSystemId in class TokenizerSAXExceptionprotected void errMissingSpaceBeforeDoctypeName()
throws SAXException
errMissingSpaceBeforeDoctypeName in class TokenizerSAXExceptionprotected void errHyphenHyphenBang()
throws SAXException
errHyphenHyphenBang in class TokenizerSAXExceptionprotected void errNcrControlChar()
throws SAXException
errNcrControlChar in class TokenizerSAXExceptionprotected void errNcrZero()
throws SAXException
errNcrZero in class TokenizerSAXExceptionprotected void errNoSpaceBetweenDoctypeSystemKeywordAndQuote()
throws SAXException
errNoSpaceBetweenDoctypeSystemKeywordAndQuote in class TokenizerSAXExceptionprotected void errNoSpaceBetweenPublicAndSystemIds()
throws SAXException
errNoSpaceBetweenPublicAndSystemIds in class TokenizerSAXExceptionprotected void errNoSpaceBetweenDoctypePublicKeywordAndQuote()
throws SAXException
errNoSpaceBetweenDoctypePublicKeywordAndQuote in class TokenizerSAXExceptionprotected void noteAttributeWithoutValue()
throws SAXException
noteAttributeWithoutValue in class TokenizerSAXExceptionprotected void noteUnquotedAttributeValue()
throws SAXException
noteUnquotedAttributeValue in class TokenizerSAXExceptionpublic void setTransitionHandler(TransitionHandler transitionHandler)
transitionHandler - the transitionHandler to setpublic void setTransitionBaseOffset(int offset)
TransitionHandler.setTransitionBaseOffset in class Tokenizeroffset - the offsetCopyright © 2017. All rights reserved.