/** * Replaces the underlying input stream with a {@link ClosedInputStream} * sentinel. The original input stream will remain open, but this proxy * will appear closed. */ @Override public void close() { in = new ClosedInputStream(); }
/** * Returns an empty stream. This will make an XML parser silently * ignore any external entities. */ @Override public InputSource resolveEntity(String publicId, String systemId) { return new InputSource(new ClosedInputStream()); }
/** * Replaces the underlying input stream with a {@link ClosedInputStream} * sentinel. The original input stream will remain open, but this proxy * will appear closed. */ @Override public void close() { in = new ClosedInputStream(); }
/** * Replaces the underlying input stream with a {@link ClosedInputStream} * sentinel. The original input stream will remain open, but this proxy * will appear closed. */ @Override public void close() { in = new ClosedInputStream(); }
/** * Returns an empty stream. This will make an XML parser silently * ignore any external entities. */ @Override public InputSource resolveEntity(String publicId, String systemId) { return new InputSource(new ClosedInputStream()); }
/** * Returns an empty stream. This will make an XML parser silently * ignore any external entities. */ @Override public InputSource resolveEntity(String publicId, String systemId) { return new InputSource(new ClosedInputStream()); }