12 lines
363 B
Text
12 lines
363 B
Text
|
|
||
|
class NoEntityResolver implements EntityResolver {
|
||
|
@Override
|
||
|
public InputSource resolveEntity(String publicId, String systemId)
|
||
|
throws SAXException, IOException {
|
||
|
// Throwing an exception stops validation.
|
||
|
throw new IOException(String.format(
|
||
|
"attempt to resolve \"%s\" \"%s\"", publicId, systemId));
|
||
|
}
|
||
|
}
|
||
|
|