public void save(String filename, int format) { if (filename == null) SWT.error(SWT.ERROR_NULL_ARGUMENT); OutputStream stream = null; try { stream = Compatibility.newFileOutputStream(filename); } catch (IOException e) { SWT.error(SWT.ERROR_IO, e); } save(stream, format); try { stream.close(); } catch (IOException e) { }
public void save(OutputStream stream, int format) { if (stream == null) SWT.error(SWT.ERROR_NULL_ARGUMENT); FileFormat.save(stream, format, this);
public void save(String filename, int format) {	if (filename == null) SWT.error(SWT.ERROR_NULL_ARGUMENT);	OutputStream stream = null;	try {		stream = Compatibility.newFileOutputStream(filename);	} catch (IOException e) {		SWT.error(SWT.ERROR_IO, e);	}	save(stream, format);	try {		stream.close();	} catch (IOException e) {	}}