public void startProduction(ImageConsumer ic) { addConsumer(ic); Vector list = (Vector) consumers.clone(); try { FileInputStream is = (url == null) ? new FileInputStream(filename) : (FileInputStream) url.openStream();
public void startProduction (ImageConsumer ic) { addConsumer (ic); Vector list = (Vector) consumers.clone (); try {     if (url != null) input = url.openStream(); else { if (filename != null) input = new FileInputStream (filename); else input = new ByteArrayInputStream (data, offset, length); }
	public void startProduction(ImageConsumer ic) {		addConsumer(ic);		Vector list = (Vector) consumers.clone();		try {			FileInputStream is = (url == null) ? new FileInputStream(filename) : (FileInputStream) url.openStream();			produce(list, is);		} catch (Exception e) {			for (int i = 0; i < list.size(); i++) {				ImageConsumer ic2 = (ImageConsumer) list.elementAt(i);				ic2.imageComplete(ImageConsumer.IMAGEERROR);			}		}	}