public static Dockerfile parse(File file) throws DockerFileException {
  try {
    return parse(CharStreams.readLines(Files.newReader(file,Charset.defaultCharset())));
  }
 catch (  IOException e) {
    throw new DockerFileException("Error happened parsing the Docker file." + e.getMessage(),e);
  }
}

public static Dockerfile parse ( File file ) throws DockerFileException { try { return parse ( CharStreams . readLines ( Files . newReader ( file , Charset . defaultCharset ( ) ) ) ) ; } catch ( IOException e ) { throw new DockerFileException ( "Error happened parsing the Docker file." + e . getMessage ( ) , e ) ; } }
parse content of dockerfile from the specified file .
