class FakeInputStream extends InputStream {

    @Override
    public int read() {
        if (limit <= 0) {
            return -1;
        }
        limit--;
        read++;
        return getValue();
    }

    public  FakeInputStream(long limit);
    public  FakeInputStream(long limit, boolean block);
    public  FakeInputStream(long limit, boolean block, boolean useRandom);

}