public ImageData[] load(String filename) { if (filename == null) SWT.error(SWT.ERROR_NULL_ARGUMENT); InputStream stream = null; try { stream = Compatibility.newFileInputStream(filename); return load(stream); } catch (IOException e) { SWT.error(SWT.ERROR_IO, e); } finally { try { if (stream != null) stream.close(); } catch (IOException e) {  } } return null;
public ImageData[] load(InputStream stream) { if (stream == null) SWT.error(SWT.ERROR_NULL_ARGUMENT); reset(); data = FileFormat.load(stream, this); return data;
public ImageData[] load(String filename) {	if (filename == null) SWT.error(SWT.ERROR_NULL_ARGUMENT);	InputStream stream = null;	try {		stream = Compatibility.newFileInputStream(filename);		return load(stream);	} catch (IOException e) {		SWT.error(SWT.ERROR_IO, e);	} finally {		try {			if (stream != null) stream.close();		} catch (IOException e) {			// Ignore error		}	}	return null;}