public javax.imageio.stream.ImageInputStream | createInputStreamInstance(java.lang.Object input, boolean useCache, java.io.File cacheDir)
if (input instanceof RandomAccessFile) {
try {
return new FileImageInputStream((RandomAccessFile)input);
} catch (Exception e) {
return null;
}
} else {
throw new IllegalArgumentException
("input not a RandomAccessFile!");
}
|