class RawImageReader {

    public String getDcrawBin() {
        // Check field
        if (dcrawBin != null) {
            return dcrawBin;
        }

        // Check environment
        String dcrawEnv = System.getenv().get(DCRAW_ENV_VAR);
        if (dcrawEnv != null) {
            return dcrawEnv;
        }

        // Guess by OS
        if (System.getProperty("os.name").startsWith("Windows")) {
            return "dcraw.exe";
        } else {
            return "dcraw";
        }
    }

    public  RawImageReader();
    public  RawImageReader(String dcrawBin);

}