class FakeInputStream extends InputStream {

    @Override
    public int available() {
        if (limit > Integer.MAX_VALUE) {
            return Integer.MAX_VALUE;
        }
        return (int) limit;
    }

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

}