Let's just say I have an ArrayList<ZipEntry>. If I know a particular one represents a text file, how would I go about reading from that file? I don't want to have to extract it to a new text file and then read from that. Is there a way to extract it without writing it to the Hard Disk, and instead read from it that way?
Thanks a bunch!
posted 6 years ago
Figured out the answer to my own question.
For those who are curious, use the ZipFile's .getInputStream method, supplying the ZipEntry, and then just use a scanner on that InputStream.