public void processTextNode( PreOrderTraversal traversal, Node textNode ) { sb.append( HTMLParserFactory.getHTMLParser().getCleanedText( textNode.getNodeValue() ) ); } };
/** * Returns true if parser warnings are enabled. **/ public static boolean isParserWarningsEnabled() { return _parserWarningsEnabled && getHTMLParser().supportsParserWarnings(); }
/** * Return true if the current parser will support forcing the tags and attributes to lower case * @return boolean flag */ public static boolean getForceLowerCase() { return _forceLower && getHTMLParser().supportsPreserveTagCase(); }
/** * Returns true if the current parser will return an HTMLDocument object rather than a Document object. */ public static boolean isReturnHTMLDocument() { return _returnHTMLDocument && !isPreserveTagCase() && getHTMLParser().supportsReturnHTMLDocument(); }
/** * parse the given test with the given URL * @param text * @param pageURL * @throws SAXException * @throws IOException */ public void parse( String text, URL pageURL ) throws SAXException, IOException { HTMLParserFactory.getHTMLParser().parse( pageURL, text, new DocumentAdapter() { public void setDocument(HTMLDocument document ) { HTMLPage.this.setRootNode( document ); } public String getIncludedScript( String srcAttribute ) throws IOException { return HTMLPage.this.getIncludedScript( srcAttribute ); } public ScriptingHandler getScriptingHandler() { return getResponse().getScriptingHandler(); } }); }
/** * Returns true if the current parser will return an HTMLDocument object rather than a Document object. */ public static boolean isReturnHTMLDocument() { return _returnHTMLDocument && !isPreserveTagCase() && getHTMLParser().supportsReturnHTMLDocument(); }
/** * parse the given test with the given URL * @param text * @param pageURL * @throws SAXException * @throws IOException */ public void parse( String text, URL pageURL ) throws SAXException, IOException { HTMLParserFactory.getHTMLParser().parse( pageURL, text, new DocumentAdapter() { public void setDocument(HTMLDocument document ) { HTMLPage.this.setRootNode( document ); } public String getIncludedScript( String srcAttribute ) throws IOException { return HTMLPage.this.getIncludedScript( srcAttribute ); } public ScriptingHandler getScriptingHandler() { return getResponse().getScriptingHandler(); } }); }
/** * Return true if the current parser will support forcing the tags and attributes to lower case * @return boolean flag */ public static boolean getForceLowerCase() { return _forceLower && getHTMLParser().supportsPreserveTagCase(); }
/** * Returns true if parser warnings are enabled. **/ public static boolean isParserWarningsEnabled() { return _parserWarningsEnabled && getHTMLParser().supportsParserWarnings(); }
/** * Returns true if the current parser will return an HTMLDocument object rather than a Document object. */ public static boolean isReturnHTMLDocument() { return _returnHTMLDocument && !isPreserveTagCase() && getHTMLParser().supportsReturnHTMLDocument(); }
public void processTextNode( PreOrderTraversal traversal, Node textNode ) { sb.append( HTMLParserFactory.getHTMLParser().getCleanedText( textNode.getNodeValue() ) ); } };
/** * parse the given test with the given URL * @param text * @param pageURL * @throws SAXException * @throws IOException */ public void parse( String text, URL pageURL ) throws SAXException, IOException { HTMLParserFactory.getHTMLParser().parse( pageURL, text, new DocumentAdapter() { public void setDocument(HTMLDocument document ) { HTMLPage.this.setRootNode( document ); } public String getIncludedScript( String srcAttribute ) throws IOException { return HTMLPage.this.getIncludedScript( srcAttribute ); } public ScriptingHandler getScriptingHandler() { return getResponse().getScriptingHandler(); } }); }
/** * Returns true if the current parser will preserve the case of HTML tags and attributes. */ public static boolean isPreserveTagCase() { return _preserveTagCase && getHTMLParser().supportsPreserveTagCase(); }
/** * Returns true if parser warnings are enabled. **/ public static boolean isParserWarningsEnabled() { return _parserWarningsEnabled && getHTMLParser().supportsParserWarnings(); }
public void processTextNode( PreOrderTraversal traversal, Node textNode ) { sb.append( HTMLParserFactory.getHTMLParser().getCleanedText( textNode.getNodeValue() ) ); } };
/** * Return true if the current parser will support forcing the tags and attributes to upper case * @return boolean flag */ public static boolean getForceUpperCase() { return _forceUpper && getHTMLParser().supportsPreserveTagCase(); }
/** * Returns true if the current parser will preserve the case of HTML tags and attributes. */ public static boolean isPreserveTagCase() { return _preserveTagCase && getHTMLParser().supportsPreserveTagCase(); }
/** * Return true if the current parser will support forcing the tags and attributes to lower case * @return boolean flag */ public static boolean getForceLowerCase() { return _forceLower && getHTMLParser().supportsPreserveTagCase(); }
/** * Returns true if the current parser will preserve the case of HTML tags and attributes. */ public static boolean isPreserveTagCase() { return _preserveTagCase && getHTMLParser().supportsPreserveTagCase(); }
/** * Return true if the current parser will support forcing the tags and attributes to upper case * @return boolean flag */ public static boolean getForceUpperCase() { return _forceUpper && getHTMLParser().supportsPreserveTagCase(); }