    001package hdf;
    002
    003import java.io.IOException;
    004import java.io.InputStream;
    005import java.util.Properties;
    006
    007public class HDFVersions {
    008    private static Properties props;
    009
    010    static {
    011        InputStream inst = null;
    012        props = new Properties();
    013        try {
    014            inst = HDFVersions.class.getResourceAsStream("/versions.properties");
    015            props.load(inst);
    016        }
    017        catch (IOException e) {
    018            e.printStackTrace();
    019        }
    020    }
    021
    022    public static String getPropertyVersionJava(){
    023        return props.getProperty("JAVA_VERSION");
    024    }
    025
    026    public static String getPropertyVersionHDF4(){
    027        return props.getProperty("HDF4_VERSION");
    028    }
    029
    030    public static String getPropertyVersionHDF5(){
    031        return props.getProperty("HDF5_VERSION");
    032    }
    033
    034    public static String getPropertyVersionView(){
    035        return props.getProperty("HDFVIEW_VERSION");
    036    }
    037}
    038