Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Reading ZIP/GZIP files from a FileChannel (NIO)

807589Sep 25 2008 — edited Sep 25 2008
I need to read/unpack a zip file given a FileChannel as part of a multi-task process. I've played around with extracting ZIP archives using ZipInputStream (FileInputStream) and ZipFile (File),
but neither one of those will take a FileChannel. I don't have access to the original FileInputStream that the FileChannel was taken from.

If someone could tell me a good way (or at least ANY way) of reading ZIP from a FileChannel, I would greatly appreciate it.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 23 2008
Added on Sep 25 2008
5 comments
2,185 views