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 jakarta.validation.Configuration).
- Author:
- Guillaume Smet
-
-
Field Summary
-
Fields inherited from class java.io.FilterInputStream
in
-
-
Constructor Summary
Constructors Constructor Description CloseIgnoringInputStream(InputStream in)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()-
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, transferTo
-
-
-
-
Constructor Detail
-
CloseIgnoringInputStream
public CloseIgnoringInputStream(InputStream in)
-
-
Method Detail
-
close
public void close()
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classFilterInputStream
-
-