467468469470471472473474475476477
i = new MemoryCacheImageInputStream(bs); // Test mark() and reset(). i.seek(17); h.check(i.getStreamPosition() == 17); i.mark(); i.seek(49); h.check(i.getStreamPosition() == 49); i.reset(); h.check(i.getStreamPosition() == 17);
273274275276277278279280281282283
h.check(i.length() == -1); // Test mark() and reset(). i.seek(4); i.mark(); i.read(); i.read(); i.reset();