Doc update.

This commit is contained in:
Harald Kuhr 2009-10-04 17:33:36 +02:00
parent 92b92854f6
commit aa68a4018c

View File

@ -7,14 +7,18 @@ import javax.imageio.stream.ImageInputStreamImpl;
import java.io.IOException;
/**
* BufferedFileImageInputStream
* Experimental - seems to be effective for FileImageInputStream and FileCacheImageInputStream.
* A buffered {@code ImageInputStream}.
* Experimental - seems to be effective for {@link javax.imageio.stream.FileImageInputStream}
* and {@link javax.imageio.stream.FileCacheImageInputStream} when doing a lot of single-byte reads
* (or short byte-array reads) on OS X at least.
* Code that uses the {@code readFully} methods are not affected by the issue.
*
* @author <a href="mailto:harald.kuhr@gmail.com">Harald Kuhr</a>
* @author last modified by $Author: haraldk$
* @version $Id: BufferedFileImageInputStream.java,v 1.0 May 15, 2008 4:36:49 PM haraldk Exp$
*/
// TODO: Create a provider for this (wrapping the FileIIS and FileCacheIIS classes), and disable the Sun built-in spis?
// TODO: Test on other platforms, might be just an OS X issue
public final class BufferedImageInputStream extends ImageInputStreamImpl implements ImageInputStream {
static final int DEFAULT_BUFFER_SIZE = 8192;