[netcdf-java] indicate the return value as a netcdf file

Dear netcdf-java Users,

I would like to write a java method where a return value would be the 
NetcdfFileWriter created netcdf file. How should I indicate the return value? I 
mean e.g.

public static ....... getNcValues(){

NetcdfFileWriter ncfile = 
NetcdfFileWriter.createNew(NetcdfFileWriter.Version.netcdf4, location, null);

 Dimension timeDim = ncfile.addUnlimitedDimension("time");



ncfile.create();

....


ncfile.close();

return (the created netcdf) }

Thank you for your help in advance!
Kind regards,
Beata


Beáta Szabó-Takács Ph.D
Department of Atmospheric Matter Fluxes and Long-Range Transport
Global Change Research Institute CAS
Bělidla 986/4a
603 00 Brno
Czech Republic

+420 602 975 356
www.czechglobe.cz