1. DataFormat http://www.hdfgroup.org/hdf-java-html/javadocs/ncsa/hdf/object/DataFormat.htmlyou need to know which sub class do you want to use.2. http://download.oracle.com/javase/tutorial/essential/io/fileAttr.htmlcomplex sample....// another way.i have not test them, you can try it by yourself....