public static void read(File input,String toRead,Throwing.Specific.Consumer<InputStream,IOException> reader) throws IOException {
  try (ZipFile file=new ZipFile(input);InputStream stream=file.getInputStream(file.getEntry(toRead))){
    reader.accept(stream);
  }
 }

public static void read ( File input , String toRead , Throwing . Specific . Consumer < InputStream , IOException > reader ) throws IOException { try ( ZipFile file = new ZipFile ( input ) ; InputStream stream = file . getInputStream ( file . getEntry ( toRead ) ) ) { reader . accept ( stream ) ; } }
reads the given entry from the zip .
