/**
* A wrapper around an {@link InputStream} that only supplies a limit number of
* bytes from the underlying input stream.
/**
* A wrapper around an {@link InputStream} that only supplies a limit number of
* bytes from the underlying input stream.
* @author <a href="mailto:dr@ina-germany.de">David Roden</a>
*/
public class LimitedInputStream extends FilterInputStream {
* @author <a href="mailto:dr@ina-germany.de">David Roden</a>
*/
public class LimitedInputStream extends FilterInputStream {
/**
* Creates a new LimitedInputStream that supplies at most
* <code>length</code> bytes from the given input stream.
/**
* Creates a new LimitedInputStream that supplies at most
* <code>length</code> bytes from the given input stream.
/**
* {@inheritDoc} This method does nothing, as {@link #mark(int)} and
* {@link #reset()} are not supported.
/**
* {@inheritDoc} This method does nothing, as {@link #mark(int)} and
* {@link #reset()} are not supported.
/**
* {@inheritDoc} This method does nothing, as {@link #mark(int)} and
* {@link #reset()} are not supported.
/**
* {@inheritDoc} This method does nothing, as {@link #mark(int)} and
* {@link #reset()} are not supported.