Package nu.validator.htmlparser.impl
Class ErrorReportingTokenizer
- java.lang.Object
-
- nu.validator.htmlparser.impl.Tokenizer
-
- nu.validator.htmlparser.impl.ErrorReportingTokenizer
-
- All Implemented Interfaces:
org.xml.sax.Locator
public class ErrorReportingTokenizer extends Tokenizer
-
-
Field Summary
-
Fields inherited from class nu.validator.htmlparser.impl.Tokenizer
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 Summary
Constructors Constructor Description ErrorReportingTokenizer(TokenHandler tokenHandler)
ErrorReportingTokenizer(TokenHandler tokenHandler, boolean newAttributesEachTime)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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(java.lang.String profile, java.lang.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(java.util.HashMap<java.lang.String,java.lang.String> errorProfileMap)
Sets the errorProfile.void
setTransitionBaseOffset(int offset)
Sets an offset to be added to the position reported toTransitionHandler
.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)
-
Methods inherited from class nu.validator.htmlparser.impl.Tokenizer
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, warn
-
-
-
-
Constructor Detail
-
ErrorReportingTokenizer
public ErrorReportingTokenizer(TokenHandler tokenHandler, boolean newAttributesEachTime)
- Parameters:
tokenHandler
-newAttributesEachTime
-
-
ErrorReportingTokenizer
public ErrorReportingTokenizer(TokenHandler tokenHandler)
- Parameters:
tokenHandler
-
-
-
Method Detail
-
getLineNumber
public int getLineNumber()
- Specified by:
getLineNumber
in interfaceorg.xml.sax.Locator
- Overrides:
getLineNumber
in classTokenizer
- See Also:
Locator.getLineNumber()
-
getColumnNumber
public int getColumnNumber()
- Specified by:
getColumnNumber
in interfaceorg.xml.sax.Locator
- Overrides:
getColumnNumber
in classTokenizer
- See Also:
Locator.getColumnNumber()
-
setContentNonXmlCharPolicy
public void setContentNonXmlCharPolicy(XmlViolationPolicy contentNonXmlCharPolicy)
Sets the contentNonXmlCharPolicy.- Overrides:
setContentNonXmlCharPolicy
in classTokenizer
- Parameters:
contentNonXmlCharPolicy
- the contentNonXmlCharPolicy to set
-
setErrorProfile
public void setErrorProfile(java.util.HashMap<java.lang.String,java.lang.String> errorProfileMap)
Sets the errorProfile.- Parameters:
errorProfile
-
-
note
public void note(java.lang.String profile, java.lang.String message) throws org.xml.sax.SAXException
Reports on an event based on profile selected.- Parameters:
profile
- the profile this message belongs tomessage
- the message itself- Throws:
org.xml.sax.SAXException
-
startErrorReporting
protected void startErrorReporting() throws org.xml.sax.SAXException
- Overrides:
startErrorReporting
in classTokenizer
- Throws:
org.xml.sax.SAXException
-
silentCarriageReturn
protected void silentCarriageReturn()
- Overrides:
silentCarriageReturn
in classTokenizer
-
silentLineFeed
protected void silentLineFeed()
- Overrides:
silentLineFeed
in classTokenizer
-
getLine
public int getLine()
Returns the line.
-
isNextCharOnNewLine
public boolean isNextCharOnNewLine()
Returns the nextCharOnNewLine.- Overrides:
isNextCharOnNewLine
in classTokenizer
- Returns:
- the nextCharOnNewLine
-
isAlreadyComplainedAboutNonAscii
public boolean isAlreadyComplainedAboutNonAscii()
Returns the alreadyComplainedAboutNonAscii.- Overrides:
isAlreadyComplainedAboutNonAscii
in classTokenizer
- Returns:
- the alreadyComplainedAboutNonAscii
-
flushChars
protected void flushChars(char[] buf, int pos) throws org.xml.sax.SAXException
Flushes coalesced character tokens.- Overrides:
flushChars
in classTokenizer
- Parameters:
buf
- TODOpos
- TODO- Throws:
org.xml.sax.SAXException
-
checkChar
protected char checkChar(char[] buf, int pos) throws org.xml.sax.SAXException
-
transition
protected int transition(int from, int to, boolean reconsume, int pos) throws org.xml.sax.SAXException
- Overrides:
transition
in classTokenizer
- Throws:
org.xml.sax.SAXException
- See Also:
Tokenizer.transition(int, int, boolean, int)
-
errGarbageAfterLtSlash
protected void errGarbageAfterLtSlash() throws org.xml.sax.SAXException
- Overrides:
errGarbageAfterLtSlash
in classTokenizer
- Throws:
org.xml.sax.SAXException
-
errLtSlashGt
protected void errLtSlashGt() throws org.xml.sax.SAXException
- Overrides:
errLtSlashGt
in classTokenizer
- Throws:
org.xml.sax.SAXException
-
errWarnLtSlashInRcdata
protected void errWarnLtSlashInRcdata() throws org.xml.sax.SAXException
- Overrides:
errWarnLtSlashInRcdata
in classTokenizer
- Throws:
org.xml.sax.SAXException
-
errHtml4LtSlashInRcdata
protected void errHtml4LtSlashInRcdata(char folded) throws org.xml.sax.SAXException
- Overrides:
errHtml4LtSlashInRcdata
in classTokenizer
- Throws:
org.xml.sax.SAXException
-
errCharRefLacksSemicolon
protected void errCharRefLacksSemicolon() throws org.xml.sax.SAXException
- Overrides:
errCharRefLacksSemicolon
in classTokenizer
- Throws:
org.xml.sax.SAXException
-
errNoDigitsInNCR
protected void errNoDigitsInNCR() throws org.xml.sax.SAXException
- Overrides:
errNoDigitsInNCR
in classTokenizer
- Throws:
org.xml.sax.SAXException
-
errGtInSystemId
protected void errGtInSystemId() throws org.xml.sax.SAXException
- Overrides:
errGtInSystemId
in classTokenizer
- Throws:
org.xml.sax.SAXException
-
errGtInPublicId
protected void errGtInPublicId() throws org.xml.sax.SAXException
- Overrides:
errGtInPublicId
in classTokenizer
- Throws:
org.xml.sax.SAXException
-
errNamelessDoctype
protected void errNamelessDoctype() throws org.xml.sax.SAXException
- Overrides:
errNamelessDoctype
in classTokenizer
- Throws:
org.xml.sax.SAXException
-
errConsecutiveHyphens
protected void errConsecutiveHyphens() throws org.xml.sax.SAXException
- Overrides:
errConsecutiveHyphens
in classTokenizer
- Throws:
org.xml.sax.SAXException
-
errPrematureEndOfComment
protected void errPrematureEndOfComment() throws org.xml.sax.SAXException
- Overrides:
errPrematureEndOfComment
in classTokenizer
- Throws:
org.xml.sax.SAXException
-
errBogusComment
protected void errBogusComment() throws org.xml.sax.SAXException
- Overrides:
errBogusComment
in classTokenizer
- Throws:
org.xml.sax.SAXException
-
errUnquotedAttributeValOrNull
protected void errUnquotedAttributeValOrNull(char c) throws org.xml.sax.SAXException
- Overrides:
errUnquotedAttributeValOrNull
in classTokenizer
- Throws:
org.xml.sax.SAXException
-
errSlashNotFollowedByGt
protected void errSlashNotFollowedByGt() throws org.xml.sax.SAXException
- Overrides:
errSlashNotFollowedByGt
in classTokenizer
- Throws:
org.xml.sax.SAXException
-
errHtml4XmlVoidSyntax
protected void errHtml4XmlVoidSyntax() throws org.xml.sax.SAXException
- Overrides:
errHtml4XmlVoidSyntax
in classTokenizer
- Throws:
org.xml.sax.SAXException
-
errNoSpaceBetweenAttributes
protected void errNoSpaceBetweenAttributes() throws org.xml.sax.SAXException
- Overrides:
errNoSpaceBetweenAttributes
in classTokenizer
- Throws:
org.xml.sax.SAXException
-
errHtml4NonNameInUnquotedAttribute
protected void errHtml4NonNameInUnquotedAttribute(char c) throws org.xml.sax.SAXException
- Overrides:
errHtml4NonNameInUnquotedAttribute
in classTokenizer
- Throws:
org.xml.sax.SAXException
-
errLtOrEqualsOrGraveInUnquotedAttributeOrNull
protected void errLtOrEqualsOrGraveInUnquotedAttributeOrNull(char c) throws org.xml.sax.SAXException
- Overrides:
errLtOrEqualsOrGraveInUnquotedAttributeOrNull
in classTokenizer
- Throws:
org.xml.sax.SAXException
-
errAttributeValueMissing
protected void errAttributeValueMissing() throws org.xml.sax.SAXException
- Overrides:
errAttributeValueMissing
in classTokenizer
- Throws:
org.xml.sax.SAXException
-
errBadCharBeforeAttributeNameOrNull
protected void errBadCharBeforeAttributeNameOrNull(char c) throws org.xml.sax.SAXException
- Overrides:
errBadCharBeforeAttributeNameOrNull
in classTokenizer
- Throws:
org.xml.sax.SAXException
-
errEqualsSignBeforeAttributeName
protected void errEqualsSignBeforeAttributeName() throws org.xml.sax.SAXException
- Overrides:
errEqualsSignBeforeAttributeName
in classTokenizer
- Throws:
org.xml.sax.SAXException
-
errBadCharAfterLt
protected void errBadCharAfterLt(char c) throws org.xml.sax.SAXException
- Overrides:
errBadCharAfterLt
in classTokenizer
- Throws:
org.xml.sax.SAXException
-
errLtGt
protected void errLtGt() throws org.xml.sax.SAXException
-
errProcessingInstruction
protected void errProcessingInstruction() throws org.xml.sax.SAXException
- Overrides:
errProcessingInstruction
in classTokenizer
- Throws:
org.xml.sax.SAXException
-
errUnescapedAmpersandInterpretedAsCharacterReference
protected void errUnescapedAmpersandInterpretedAsCharacterReference() throws org.xml.sax.SAXException
- Overrides:
errUnescapedAmpersandInterpretedAsCharacterReference
in classTokenizer
- Throws:
org.xml.sax.SAXException
-
errNotSemicolonTerminated
protected void errNotSemicolonTerminated() throws org.xml.sax.SAXException
- Overrides:
errNotSemicolonTerminated
in classTokenizer
- Throws:
org.xml.sax.SAXException
-
errNoNamedCharacterMatch
protected void errNoNamedCharacterMatch() throws org.xml.sax.SAXException
- Overrides:
errNoNamedCharacterMatch
in classTokenizer
- Throws:
org.xml.sax.SAXException
-
errQuoteBeforeAttributeName
protected void errQuoteBeforeAttributeName(char c) throws org.xml.sax.SAXException
- Overrides:
errQuoteBeforeAttributeName
in classTokenizer
- Throws:
org.xml.sax.SAXException
-
errQuoteOrLtInAttributeNameOrNull
protected void errQuoteOrLtInAttributeNameOrNull(char c) throws org.xml.sax.SAXException
- Overrides:
errQuoteOrLtInAttributeNameOrNull
in classTokenizer
- Throws:
org.xml.sax.SAXException
-
errExpectedPublicId
protected void errExpectedPublicId() throws org.xml.sax.SAXException
- Overrides:
errExpectedPublicId
in classTokenizer
- Throws:
org.xml.sax.SAXException
-
errBogusDoctype
protected void errBogusDoctype() throws org.xml.sax.SAXException
- Overrides:
errBogusDoctype
in classTokenizer
- Throws:
org.xml.sax.SAXException
-
maybeWarnPrivateUseAstral
protected void maybeWarnPrivateUseAstral() throws org.xml.sax.SAXException
- Overrides:
maybeWarnPrivateUseAstral
in classTokenizer
- Throws:
org.xml.sax.SAXException
-
maybeWarnPrivateUse
protected void maybeWarnPrivateUse(char ch) throws org.xml.sax.SAXException
- Overrides:
maybeWarnPrivateUse
in classTokenizer
- Throws:
org.xml.sax.SAXException
-
maybeErrAttributesOnEndTag
protected void maybeErrAttributesOnEndTag(HtmlAttributes attrs) throws org.xml.sax.SAXException
- Overrides:
maybeErrAttributesOnEndTag
in classTokenizer
- Throws:
org.xml.sax.SAXException
-
maybeErrSlashInEndTag
protected void maybeErrSlashInEndTag(boolean selfClosing) throws org.xml.sax.SAXException
- Overrides:
maybeErrSlashInEndTag
in classTokenizer
- Throws:
org.xml.sax.SAXException
-
errNcrNonCharacter
protected char errNcrNonCharacter(char ch) throws org.xml.sax.SAXException
- Overrides:
errNcrNonCharacter
in classTokenizer
- Throws:
org.xml.sax.SAXException
-
errAstralNonCharacter
protected void errAstralNonCharacter(int ch) throws org.xml.sax.SAXException
- Overrides:
errAstralNonCharacter
in classTokenizer
- Throws:
org.xml.sax.SAXException
- See Also:
Tokenizer.errAstralNonCharacter(int)
-
errNcrSurrogate
protected void errNcrSurrogate() throws org.xml.sax.SAXException
- Overrides:
errNcrSurrogate
in classTokenizer
- Throws:
org.xml.sax.SAXException
-
errNcrControlChar
protected char errNcrControlChar(char ch) throws org.xml.sax.SAXException
- Overrides:
errNcrControlChar
in classTokenizer
- Throws:
org.xml.sax.SAXException
-
errNcrCr
protected void errNcrCr() throws org.xml.sax.SAXException
-
errNcrInC1Range
protected void errNcrInC1Range() throws org.xml.sax.SAXException
- Overrides:
errNcrInC1Range
in classTokenizer
- Throws:
org.xml.sax.SAXException
-
errEofInPublicId
protected void errEofInPublicId() throws org.xml.sax.SAXException
- Overrides:
errEofInPublicId
in classTokenizer
- Throws:
org.xml.sax.SAXException
-
errEofInComment
protected void errEofInComment() throws org.xml.sax.SAXException
- Overrides:
errEofInComment
in classTokenizer
- Throws:
org.xml.sax.SAXException
-
errEofInDoctype
protected void errEofInDoctype() throws org.xml.sax.SAXException
- Overrides:
errEofInDoctype
in classTokenizer
- Throws:
org.xml.sax.SAXException
-
errEofInAttributeValue
protected void errEofInAttributeValue() throws org.xml.sax.SAXException
- Overrides:
errEofInAttributeValue
in classTokenizer
- Throws:
org.xml.sax.SAXException
-
errEofInAttributeName
protected void errEofInAttributeName() throws org.xml.sax.SAXException
- Overrides:
errEofInAttributeName
in classTokenizer
- Throws:
org.xml.sax.SAXException
-
errEofWithoutGt
protected void errEofWithoutGt() throws org.xml.sax.SAXException
- Overrides:
errEofWithoutGt
in classTokenizer
- Throws:
org.xml.sax.SAXException
-
errEofInTagName
protected void errEofInTagName() throws org.xml.sax.SAXException
- Overrides:
errEofInTagName
in classTokenizer
- Throws:
org.xml.sax.SAXException
-
errEofInEndTag
protected void errEofInEndTag() throws org.xml.sax.SAXException
- Overrides:
errEofInEndTag
in classTokenizer
- Throws:
org.xml.sax.SAXException
-
errEofAfterLt
protected void errEofAfterLt() throws org.xml.sax.SAXException
- Overrides:
errEofAfterLt
in classTokenizer
- Throws:
org.xml.sax.SAXException
-
errNcrOutOfRange
protected void errNcrOutOfRange() throws org.xml.sax.SAXException
- Overrides:
errNcrOutOfRange
in classTokenizer
- Throws:
org.xml.sax.SAXException
-
errNcrUnassigned
protected void errNcrUnassigned() throws org.xml.sax.SAXException
- Overrides:
errNcrUnassigned
in classTokenizer
- Throws:
org.xml.sax.SAXException
-
errDuplicateAttribute
protected void errDuplicateAttribute() throws org.xml.sax.SAXException
- Overrides:
errDuplicateAttribute
in classTokenizer
- Throws:
org.xml.sax.SAXException
-
errEofInSystemId
protected void errEofInSystemId() throws org.xml.sax.SAXException
- Overrides:
errEofInSystemId
in classTokenizer
- Throws:
org.xml.sax.SAXException
-
errExpectedSystemId
protected void errExpectedSystemId() throws org.xml.sax.SAXException
- Overrides:
errExpectedSystemId
in classTokenizer
- Throws:
org.xml.sax.SAXException
-
errMissingSpaceBeforeDoctypeName
protected void errMissingSpaceBeforeDoctypeName() throws org.xml.sax.SAXException
- Overrides:
errMissingSpaceBeforeDoctypeName
in classTokenizer
- Throws:
org.xml.sax.SAXException
-
errHyphenHyphenBang
protected void errHyphenHyphenBang() throws org.xml.sax.SAXException
- Overrides:
errHyphenHyphenBang
in classTokenizer
- Throws:
org.xml.sax.SAXException
-
errNcrControlChar
protected void errNcrControlChar() throws org.xml.sax.SAXException
- Overrides:
errNcrControlChar
in classTokenizer
- Throws:
org.xml.sax.SAXException
-
errNcrZero
protected void errNcrZero() throws org.xml.sax.SAXException
- Overrides:
errNcrZero
in classTokenizer
- Throws:
org.xml.sax.SAXException
-
errNoSpaceBetweenDoctypeSystemKeywordAndQuote
protected void errNoSpaceBetweenDoctypeSystemKeywordAndQuote() throws org.xml.sax.SAXException
- Overrides:
errNoSpaceBetweenDoctypeSystemKeywordAndQuote
in classTokenizer
- Throws:
org.xml.sax.SAXException
-
errNoSpaceBetweenPublicAndSystemIds
protected void errNoSpaceBetweenPublicAndSystemIds() throws org.xml.sax.SAXException
- Overrides:
errNoSpaceBetweenPublicAndSystemIds
in classTokenizer
- Throws:
org.xml.sax.SAXException
-
errNoSpaceBetweenDoctypePublicKeywordAndQuote
protected void errNoSpaceBetweenDoctypePublicKeywordAndQuote() throws org.xml.sax.SAXException
- Overrides:
errNoSpaceBetweenDoctypePublicKeywordAndQuote
in classTokenizer
- Throws:
org.xml.sax.SAXException
-
noteAttributeWithoutValue
protected void noteAttributeWithoutValue() throws org.xml.sax.SAXException
- Overrides:
noteAttributeWithoutValue
in classTokenizer
- Throws:
org.xml.sax.SAXException
-
noteUnquotedAttributeValue
protected void noteUnquotedAttributeValue() throws org.xml.sax.SAXException
- Overrides:
noteUnquotedAttributeValue
in classTokenizer
- Throws:
org.xml.sax.SAXException
-
setTransitionHandler
public void setTransitionHandler(TransitionHandler transitionHandler)
Sets the transitionHandler.- Parameters:
transitionHandler
- the transitionHandler to set
-
setTransitionBaseOffset
public void setTransitionBaseOffset(int offset)
Sets an offset to be added to the position reported toTransitionHandler
.- Overrides:
setTransitionBaseOffset
in classTokenizer
- Parameters:
offset
- the offset
-
-