Top Description Fields Constructors Methods
org.hibernate.validator.internal.xml

public Class CloseIgnoringInputStream

extends FilterInputStream
Class Inheritance
Imports
java.io.FilterInputStream, .InputStream

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

Inherited from java.io.FilterInputStream:
in

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
close()

Overrides java.io.FilterInputStream.close.

Implements java.io.Closeable.close.

Closes this input stream and releases any system resources associated with the stream.
Inherited from java.io.FilterInputStream:
availablemarkmarkSupportedreadreadreadresetskip

Constructor Detail

CloseIgnoringInputStreamback to summary
public CloseIgnoringInputStream(InputStream in)

Method Detail

closeback to summary
public void close()

Overrides java.io.FilterInputStream.close.

Implements java.io.Closeable.close.

Doc from java.io.FilterInputStream.close.

Closes this input stream and releases any system resources associated with the stream.

Annotations
@Override