• Post Reply Bookmark Topic Watch Topic
  • New Topic

Zip Files  RSS feed

 
Billy Nicholson
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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!
 
Billy Nicholson
Greenhorn
Posts: 8
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!