public void switchEncoding(Encoding newEnc) { this.decoder = newEnc.newDecoder(); initDecoder(); } }
/** * Sets the encoding sniffing heuristics. * * @param heuristics the heuristics to set * @see nu.validator.htmlparser.impl.Tokenizer#setHeuristics(nu.validator.htmlparser.common.Heuristics) */ public void setHeuristics(Heuristics heuristics) { this.heuristics = heuristics; if (driver != null) { driver.setHeuristics(heuristics); } }
/** * Toggles the checking of the NFC normalization of source. * @param enable <code>true</code> to check normalization * @see nu.validator.htmlparser.impl.Tokenizer#setCheckingNormalization(boolean) */ public void setCheckingNormalization(boolean enable) { this.checkingNormalization = enable; if (driver != null) { driver.setCheckingNormalization(checkingNormalization); } }
/** * Returns the <code>Locator</code> during parse. * @return the <code>Locator</code> */ public Locator getDocumentLocator() { return driver.getDocumentLocator(); }
/** * Sets the policy for consecutive hyphens in comments. * @param commentPolicy the policy * @see nu.validator.htmlparser.impl.Tokenizer#setCommentPolicy(nu.validator.htmlparser.common.XmlViolationPolicy) */ public void setCommentPolicy(XmlViolationPolicy commentPolicy) { this.commentPolicy = commentPolicy; if (driver != null) { driver.setCommentPolicy(commentPolicy); } }
/** * Whether <code>lang</code> is mapped to <code>xml:lang</code>. * @param mappingLangToXmlLang * @see nu.validator.htmlparser.impl.Tokenizer#setMappingLangToXmlLang(boolean) */ public void setMappingLangToXmlLang(boolean mappingLangToXmlLang) { this.mappingLangToXmlLang = mappingLangToXmlLang; if (driver != null) { driver.setMappingLangToXmlLang(mappingLangToXmlLang); } }
/** * Sets the policy for non-XML white space. * @param contentSpacePolicy the policy * @see nu.validator.htmlparser.impl.Tokenizer#setContentSpacePolicy(nu.validator.htmlparser.common.XmlViolationPolicy) */ public void setContentSpacePolicy(XmlViolationPolicy contentSpacePolicy) { this.contentSpacePolicy = contentSpacePolicy; if (driver != null) { driver.setContentSpacePolicy(contentSpacePolicy); } }
/** * Whether the HTML 4 mode reports boolean attributes in a way that repeats * the name in the value. * @param html4ModeCompatibleWithXhtml1Schemata */ public void setHtml4ModeCompatibleWithXhtml1Schemata( boolean html4ModeCompatibleWithXhtml1Schemata) { this.html4ModeCompatibleWithXhtml1Schemata = html4ModeCompatibleWithXhtml1Schemata; if (driver != null) { driver.setHtml4ModeCompatibleWithXhtml1Schemata(html4ModeCompatibleWithXhtml1Schemata); } }
public void switchEncoding(Encoding newEnc) { this.decoder = newEnc.newDecoder(); initDecoder(); } }
/** * Sets the encoding sniffing heuristics. * * @param heuristics the heuristics to set * @see nu.validator.htmlparser.impl.Tokenizer#setHeuristics(nu.validator.htmlparser.common.Heuristics) */ public void setHeuristics(Heuristics heuristics) { this.heuristics = heuristics; if (driver != null) { driver.setHeuristics(heuristics); } }
/** * Toggles the checking of the NFC normalization of source. * @param enable <code>true</code> to check normalization * @see nu.validator.htmlparser.impl.Tokenizer#setCheckingNormalization(boolean) */ public void setCheckingNormalization(boolean enable) { this.checkingNormalization = enable; if (driver != null) { driver.setCheckingNormalization(checkingNormalization); } }
/** * Returns the <code>Locator</code> during parse. * @return the <code>Locator</code> */ public Locator getDocumentLocator() { return driver.getDocumentLocator(); }
/** * Sets the policy for consecutive hyphens in comments. * @param commentPolicy the policy * @see nu.validator.htmlparser.impl.Tokenizer#setCommentPolicy(nu.validator.htmlparser.common.XmlViolationPolicy) */ public void setCommentPolicy(XmlViolationPolicy commentPolicy) { this.commentPolicy = commentPolicy; if (driver != null) { driver.setCommentPolicy(commentPolicy); } }
/** * Whether <code>lang</code> is mapped to <code>xml:lang</code>. * @param mappingLangToXmlLang * @see nu.validator.htmlparser.impl.Tokenizer#setMappingLangToXmlLang(boolean) */ public void setMappingLangToXmlLang(boolean mappingLangToXmlLang) { this.mappingLangToXmlLang = mappingLangToXmlLang; if (driver != null) { driver.setMappingLangToXmlLang(mappingLangToXmlLang); } }
/** * Sets the policy for non-XML white space. * @param contentSpacePolicy the policy * @see nu.validator.htmlparser.impl.Tokenizer#setContentSpacePolicy(nu.validator.htmlparser.common.XmlViolationPolicy) */ public void setContentSpacePolicy(XmlViolationPolicy contentSpacePolicy) { this.contentSpacePolicy = contentSpacePolicy; if (driver != null) { driver.setContentSpacePolicy(contentSpacePolicy); } }
public void switchEncoding(Encoding newEnc) { this.decoder = newEnc.newDecoder(); initDecoder(); } }
/** * Sets the encoding sniffing heuristics. * * @param heuristics the heuristics to set * @see nu.validator.htmlparser.impl.Tokenizer#setHeuristics(nu.validator.htmlparser.common.Heuristics) */ public void setHeuristics(Heuristics heuristics) { this.heuristics = heuristics; if (driver != null) { driver.setHeuristics(heuristics); } }
/** * Toggles the checking of the NFC normalization of source. * @param enable <code>true</code> to check normalization * @see nu.validator.htmlparser.impl.Tokenizer#setCheckingNormalization(boolean) */ public void setCheckingNormalization(boolean enable) { this.checkingNormalization = enable; if (driver != null) { driver.setCheckingNormalization(checkingNormalization); } }
/** * Returns the <code>Locator</code> during parse. * @return the <code>Locator</code> */ public Locator getDocumentLocator() { return driver.getDocumentLocator(); }
/** * Sets the policy for consecutive hyphens in comments. * @param commentPolicy the policy * @see nu.validator.htmlparser.impl.Tokenizer#setCommentPolicy(nu.validator.htmlparser.common.XmlViolationPolicy) */ public void setCommentPolicy(XmlViolationPolicy commentPolicy) { this.commentPolicy = commentPolicy; if (driver != null) { driver.setCommentPolicy(commentPolicy); } }