Home | History | Annotate | Download | only in streamhtmlparser

Lines Matching refs:HtmlParser

25  * A factory class to obtain instances of an {@link HtmlParser}.
40 * To provide additional options when creating an {@code HtmlParser} using
41 * {@link HtmlParserFactory#createParserInAttribute(HtmlParser.ATTR_TYPE,
49 * {@link HtmlParser.ATTR_TYPE#JS} - and only when the attribute is also
59 * {@link HtmlParser.ATTR_TYPE#URI}.
65 * To provide additional options when creating an {@code HtmlParser} using
66 * {@link HtmlParserFactory#createParserInMode(HtmlParser.Mode, Set)}
72 * valid in the {@link HtmlParser.Mode#JS} mode.
77 private static final HtmlParser parserInDefaultAttr = createParser();
78 private static final HtmlParser parserInDefaultAttrQ = createParser();
79 private static final HtmlParser parserInUriAttrComplete = createParser();
80 private static final HtmlParser parserInUriAttrQComplete = createParser();
81 private static final HtmlParser parserInUriAttrPartial = createParser();
82 private static final HtmlParser parserInUriAttrQPartial = createParser();
83 private static final HtmlParser parserInJsAttr = createParser();
84 private static final HtmlParser parserInJsAttrQ = createParser();
85 private static final HtmlParser parserInQJsAttr = createParser();
86 private static final HtmlParser parserInStyleAttr = createParser();
87 private static final HtmlParser parserInStyleAttrQ = createParser();
88 private static final HtmlParser parserInJsQ = createParser();
115 * Returns an {@code HtmlParser} object ready to parse HTML input.
117 * @return an {@code HtmlParser} in the provided mode
119 public static HtmlParser createParser() {
124 * Returns an {@code HtmlParser} object initialized with the
130 * @return an {@code HtmlParser} in the provided mode
133 public static HtmlParser createParserInMode(HtmlParser.Mode mode,
142 HtmlParser parser = new HtmlParserImpl();
148 * Returns an {@code HtmlParser} that is a copy of the one
152 * @param aHtmlParser a {@code HtmlParser} to copy from
153 * @return an {@code HtmlParser} that is a copy of the provided one
156 public static HtmlParser createParser(HtmlParser aHtmlParser) {
160 // implementation of the HtmlParser interface.
165 * A very specialized {@code HtmlParser} accessor that returns a parser
174 * createParserInAttribute(HtmlParser.ATTR_TYPE.URI, true)}
179 * As a special-case, when called with the {@code HtmlParser.ATTR_TYPE}
180 * of {@code HtmlParser.ATTR_TYPE.NONE}, the parser is created in a state
188 * @return an {@code HtmlParser} initialized in the given attribute type
192 public static HtmlParser createParserInAttribute(
193 HtmlParser.ATTR_TYPE attrtype,
197 HtmlParser parser;
231 parser = createParserInMode(HtmlParser.Mode.HTML_IN_TAG, null);
261 parserInDefaultAttr.parse("<xparsertag htmlparser=");
262 parserInDefaultAttrQ.parse("<xparsertag htmlparser=\"");
285 parserInJsQ.resetMode(HtmlParser.Mode.JS);