All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.hibernate.validator.internal.xml.CloseIgnoringInputStream Maven / Gradle / Ivy

There is a newer version: 8.0.1.Final
Show newest version
/*
 * Hibernate Validator, declare and validate application constraints
 *
 * License: Apache License, Version 2.0
 * See the license.txt file in the root directory or .
 */
package org.hibernate.validator.internal.xml;

import java.io.FilterInputStream;
import java.io.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 javax.validation.Configuration). * * @author Guillaume Smet */ public class CloseIgnoringInputStream extends FilterInputStream { public CloseIgnoringInputStream(InputStream in) { super( in ); } @Override public void close() { // do nothing } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy