Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: ZipInputStream does not read comments



how is this not a bug?

The comments for all files are stored in the index structure at the end of the stream, so there's no way to retrieve them until the end of the stream is reached. The zip file format just isn't that well suited to stream processing.


Excellent answer. So then is the *bug* is not documenting this fact in the API docs? (I just now glanced thru the ZipInputStream API and didn't see it documented there.)

I would suggest a note in the getNextEntry() method: "Note: ZipEntries returned by this method will not contain comments." Or somesuch.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Java-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/java-dev/email@hidden


This email sent to email@hidden
References: 
 >ZipInputStream does not read comments (From: Geoff Levner <email@hidden>)
 >Re: ZipInputStream does not read comments (From: Geoff Levner <email@hidden>)
 >Re: ZipInputStream does not read comments (From: Nicholas Rinard <email@hidden>)
 >Re: ZipInputStream does not read comments (From: "Lachlan O'Dea" <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.