Methods Summary |
---|
public javax.imageio.ImageReadParam | getDefaultReadParam()
return new JPEGImageReadParam();
|
public int | getHeight(int i)
//-- TODO imlement
throw new UnsupportedOperationException("not implemented yet");
|
public javax.imageio.metadata.IIOMetadata | getImageMetadata(int i)
//-- TODO imlement
throw new UnsupportedOperationException("not implemented yet");
|
public java.util.Iterator | getImageTypes(int i)
//-- TODO imlement
throw new UnsupportedOperationException("not implemented yet");
|
public int | getNumImages(boolean b)
//-- TODO imlement
throw new UnsupportedOperationException("not implemented yet");
|
public javax.imageio.metadata.IIOMetadata | getStreamMetadata()
//-- TODO imlement
throw new UnsupportedOperationException("not implemented yet");
|
public int | getWidth(int i)
//-- TODO imlement
throw new UnsupportedOperationException("not implemented yet");
|
public java.awt.image.BufferedImage | read(int i, javax.imageio.ImageReadParam imageReadParam)
if (iis == null) {
throw new IllegalArgumentException("input stream == null");
}
DecodingImageSource source = new IISDecodingImageSource(iis);
OffscreenImage image = new OffscreenImage(source);
source.addConsumer(image);
source.load();
// The interrupted flag should be cleared because ImageDecoder interrupts
// current thread while decoding. The same technique is used in
// ImageLoader#run(). Another solution can be to create
// a separate decoding thread. However, decoder keeps its own pool
// of threads so creating a new thread will be just a waste of resources.
Thread.interrupted();
return image.getBufferedImage();
|
public java.awt.image.BufferedImage | read(int i)
return read(i, null);
|
public void | setInput(java.lang.Object input, boolean seekForwardOnly, boolean ignoreMetadata)
super.setInput(input, seekForwardOnly, ignoreMetadata);
iis = (ImageInputStream) input;
|