@Override
    public InputSource resolveEntity(String publicId, String systemId)
            throws SAXException, IOException {
        return new InputSource(new ClosedInputStream());
    }
Returns -1 to indicate that the stream is closed.

@return always -1
tika-core/src/test/java/org/apache/tika/sax/NonValidatingContentHandler.java