FileInputStream is = (url == null) ? new FileInputStream (filename) : (FileInputStream) url.openStream();  produce (list, is); }
if (url != null) input = url.openStream(); else { if (filename != null) input = new FileInputStream (filename); else input = new ByteArrayInputStream (data, offset, length); }  produce (list, input); }
  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);	  }      }  }