I have seen many Java tutorial that explains how to uncompress a zip file to disk. But I was wondering if it was possible to extract a file into memory.
For example, I will have multiple zip files to read which each contains a JSON file with some information. I want to pass into each zip file and extract the information from the JSON file.
Now with what I currently know, I would need to extract the JSON file to disk, read the JSON file from disk, delete the JSON file and then repeat with the next zip file.
Is there a way to extract a zip entry into a memory object, and read the JSON file from memory.
In fact what I would need is a file handle pointing to an in-memory file extracted from the zip archive.