/** * 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 String getIncludedScript( String srcAttribute ) { try { return _documentAdapter.getIncludedScript( srcAttribute ); } catch (IOException e) { throw new ScriptException( e ); } }
/** * 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(); } }); }
/** * Add an Html error listener. * @deprecated as of 1.5.2, use HTMLParserfactory#addHTMLParserListener **/ public static void addHtmlErrorListener(HTMLParserListener el) { HTMLParserFactory.addHTMLParserListener( el ); }
/** * 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(); }
/** * Returns true if parser warnings are enabled. **/ public static boolean isParserWarningsEnabled() { return _parserWarningsEnabled && getHTMLParser().supportsParserWarnings(); }
public String getIncludedScript( String srcAttribute ) { try { return _documentAdapter.getIncludedScript( srcAttribute ); } catch (IOException e) { throw new ScriptException( e ); } }
/** * 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 return an HTMLDocument object rather than a Document object. */ public static boolean isReturnHTMLDocument() { return _returnHTMLDocument && !isPreserveTagCase() && getHTMLParser().supportsReturnHTMLDocument(); }
/** * Returns true if parser warnings are enabled. **/ public static boolean isParserWarningsEnabled() { return _parserWarningsEnabled && getHTMLParser().supportsParserWarnings(); }
public String getIncludedScript( String srcAttribute ) { try { return _documentAdapter.getIncludedScript( srcAttribute ); } catch (IOException e) { throw new ScriptException( e ); } }
/** * 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(); }
/** * 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(); }
/** * 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(); }