public synchronized byte[] getBytes() throws IOException {
return resource.getBytes();
}
public synchronized ImageProducer getImageProducer() {
ImageProducer imageProducer = resource.getImageProducer();
// This is due to a stupid bug in ImageConsumerQueue,
// which seems to be introduced in jdk1.3, which
// forbids me to use my own ImageProducer implementation.