Class CloseIgnoringInputStream
java.lang.Object
java.io.InputStream
java.io.FilterInputStream
org.hibernate.validator.internal.xml.CloseIgnoringInputStream
- All Implemented Interfaces:
Closeable
,AutoCloseable
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
-
Field Summary
Fields inherited from class java.io.FilterInputStream
in
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.io.FilterInputStream
available, mark, markSupported, read, read, read, reset, skip
Methods inherited from class java.io.InputStream
nullInputStream, readAllBytes, readNBytes, readNBytes, skipNBytes, transferTo
-
Constructor Details
-
CloseIgnoringInputStream
-
-
Method Details
-
close
public void close()- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Overrides:
close
in classFilterInputStream
-