@@ -69,22 +69,6 @@ public interface HTMLParser {
6969 ElementFactory getElementFactory (SgmlPage page , String namespaceURI ,
7070 String qualifiedName , boolean insideSvg , boolean svgSupport );
7171
72- /**
73- * Parses the HTML content from the given string into an object tree representation.
74- *
75- * @param parent the parent for the new nodes
76- * @param source the (X)HTML to be parsed
77- * @throws SAXException if a SAX error occurs
78- * @throws IOException if an IO error occurs
79- *
80- * @deprecated as of version 4.12.0; use
81- * {@link #parseFragment(WebClient, DomNode, DomNode, String, boolean)} instead.
82- */
83- @ Deprecated
84- default void parseFragment (final DomNode parent , final String source ) throws SAXException , IOException {
85- parseFragment (null , parent , parent , source , false );
86- }
87-
8872 /**
8973 * Parses the HTML content from the given string into an object tree representation.
9074 *
@@ -99,25 +83,6 @@ default void parseFragment(final DomNode parent, final String source) throws SAX
9983 void parseFragment (WebClient webClient , DomNode parent , DomNode context , String source ,
10084 boolean createdByJavascript ) throws SAXException , IOException ;
10185
102- /**
103- * Parses the HTML content from the given string into an object tree representation.
104- *
105- * @param parent where the new parsed nodes will be added to
106- * @param context the context to build the fragment context stack
107- * @param source the (X)HTML to be parsed
108- * @param createdByJavascript if true the (script) tag was created by javascript
109- * @throws SAXException if a SAX error occurs
110- * @throws IOException if an IO error occurs
111- *
112- * @deprecated as of version 4.12.0; use
113- * {@link #parseFragment(WebClient, DomNode, DomNode, String, boolean)} instead.
114- */
115- @ Deprecated
116- default void parseFragment (final DomNode parent , final DomNode context , final String source ,
117- final boolean createdByJavascript ) throws SAXException , IOException {
118- parseFragment (null , parent , context , source , createdByJavascript );
119- }
120-
12186 /**
12287 * Parses the WebResponse into an object tree representation.
12388 *
@@ -130,22 +95,4 @@ default void parseFragment(final DomNode parent, final DomNode context, final St
13095 */
13196 void parse (WebClient webClient , WebResponse webResponse , HtmlPage page ,
13297 boolean xhtml , boolean createdByJavascript ) throws IOException ;
133-
134- /**
135- * Parses the WebResponse into an object tree representation.
136- *
137- * @param webResponse the response data
138- * @param page the HtmlPage to add the nodes
139- * @param xhtml if true use the XHtml parser
140- * @param createdByJavascript if true the (script) tag was created by javascript
141- * @throws IOException if there is an IO error
142- *
143- * @deprecated as of version 4.12.0; use
144- * {@link #parse(WebClient, WebResponse, HtmlPage, boolean, boolean)} instead.
145- */
146- @ Deprecated
147- default void parse (final WebResponse webResponse , final HtmlPage page , final boolean xhtml ,
148- final boolean createdByJavascript ) throws IOException {
149- parse (null , webResponse , page , xhtml , createdByJavascript );
150- }
15198}
0 commit comments