Class CloseIgnoringInputStream

java.lang.Object
java.io.InputStream
java.io.FilterInputStream
org.hibernate.validator.internal.xml.CloseIgnoringInputStream
All Implemented Interfaces:
Closeable, AutoCloseable

public class CloseIgnoringInputStream extends FilterInputStream
HV-1025 - On some JVMs (eg the IBM JVM) the JAXB implementation closes the underlying input stream.

To prevent this we wrap the input stream to be able to ignore the close event. It is the responsibility of the client API to close the stream (as per Bean Validation spec, see javax.validation.Configuration).

Author:
Guillaume Smet