Skip to content

Commit 005318a

Browse files
committed
DefaultEntityResolver: deprecate resolveEntity(DocumentTypeDeclaration).
The idea is to get rid of `DocumentTypeDeclaration` which has a dependency on JCLF.
1 parent 2e6a9f3 commit 005318a

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

src/io/sf/carte/doc/xml/dtd/DefaultEntityResolver.java

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -511,6 +511,21 @@ public final InputSource resolveEntity(String publicId, String systemId) throws
511511
return resolveEntity(null, publicId, null, systemId);
512512
}
513513

514+
/**
515+
* Resolve the given DTD.
516+
* <p>
517+
* This method is deprecated, use any of the other variants.
518+
* </p>
519+
*
520+
* @param dtDecl the document type declaration.
521+
* @return an InputSource object describing the new input source to be used by
522+
* the parser.
523+
* @throws SAXException Any SAX exception, possibly wrapping another exception.
524+
* @throws IOException indicating a failure to create a new InputStream or
525+
* Reader, or an illegal URL.
526+
* @deprecated
527+
*/
528+
@Deprecated
514529
public InputSource resolveEntity(DocumentTypeDeclaration dtDecl) throws SAXException, IOException {
515530
return resolveEntity(dtDecl.getName(), dtDecl.getPublicId(), null, dtDecl.getSystemId());
516531
}

0 commit comments

Comments
 (0)