// defer flush to writeTo()
LOG.debug("Ignore invoke of MemoryCacheImageOutputStream.flush()");
}
};
compressor.setOutput(patchJPEGLS != null
? new PatchJPEGLSImageOutputStream(cache, patchJPEGLS)
: cache);
long start = System.currentTimeMillis();
compressor.write(null, new IIOImage(bi, null, null), compressParam);
long end = System.currentTimeMillis();
streamLength = (int) cache.getStreamPosition();