Class BoundedInputStream

java.lang.Object
java.io.InputStream
java.io.FilterInputStream
org.springframework.ws.support.BoundedInputStream
All Implemented Interfaces:
Closeable, AutoCloseable

public class BoundedInputStream extends FilterInputStream
An InputStream wrapper that limits the number of bytes read from an underlying stream.

If the number of bytes read exceeds the specified max size, an IOException is thrown.

Since:
3.1.10