Package pixy.io

Class MemoryCacheRandomAccessInputStream

java.lang.Object
java.io.InputStream
pixy.io.RandomAccessInputStream
pixy.io.MemoryCacheRandomAccessInputStream
All Implemented Interfaces:
java.io.Closeable, java.io.DataInput, java.lang.AutoCloseable

public class MemoryCacheRandomAccessInputStream
extends RandomAccessInputStream
Implements a memory cached random access input stream to ease the decoding of some types of images such as TIFF which may need random access to the underlying stream.

Based on com.sun.media.jai.codec.MemoryCacheSeekableStream.

This implementation has a major drawback: It has no knowledge of the length of the stream, it is supposed to move forward even though it is possible to put the pointer at anywhere before the end of the stream.

Version:
1.0 02/09/2014
Author:
Wen Yu, yuwen_66@yahoo.com