@@ -516,18 +516,22 @@ public InputSource resolveEntity(DocumentType dtDecl) throws SAXException, IOExc
516
516
}
517
517
518
518
/**
519
- * Resolve the given DTD.
520
- * <p>
521
- * This method is deprecated, use any of the other variants.
522
- * </p>
519
+ * Resolve the given DTD string.
523
520
*
524
521
* @param documentTypeDeclaration the document type declaration.
525
522
* @return an InputSource object describing the new input source to be used by
526
523
* the parser.
527
524
* @throws SAXException Any SAX exception, possibly wrapping another exception.
528
525
* @throws IOException indicating a failure to create a new InputStream or
529
526
* Reader, or an illegal URL.
527
+ * @deprecated This method uses the {@link DocumentTypeDeclaration} type, which
528
+ * carries a dependency with the {@code jclf-text} module, and is
529
+ * going to be removed to make the class a bit lighter. People
530
+ * needing this functionality can always parse the DTD string on
531
+ * their own with {@link DocumentTypeDeclaration#parse(String)} and
532
+ * then call {@link #resolveEntity(String, String, String, String)}.
530
533
*/
534
+ @ Deprecated (forRemoval =true )
531
535
public InputSource resolveEntity (String documentTypeDeclaration ) throws SAXException , IOException {
532
536
DocumentTypeDeclaration dtDecl = DocumentTypeDeclaration .parse (documentTypeDeclaration );
533
537
return resolveEntity (dtDecl .getName (), dtDecl .getPublicId (), null , dtDecl .getSystemId ());
0 commit comments