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