public static Dockerfile parse(Reader reader) throws DockerFileException {
  try {
    return parse(CharStreams.readLines(reader));
  }
 catch (  IOException e) {
    throw new DockerFileException("Error happened parsing the Docker file:" + e.getMessage(),e);
  }
}

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