public class BrokenInputStream extends InputStream
Implements an InputStream what wraps another InputStream and throws an
IOException after having read a specified number of bytes. Used for
injecting IOExceptions on lower levels.
Fields Summary
private InputStream
stream
private int
offset
Constructors Summary
public BrokenInputStream(InputStream stream, int offset)