On Wed, Jun 10, 2015 at 9:29 PM, Stefan Bodewig <bode...@apache.org> wrote:
> On 2015-06-10, Kristina Chodorow wrote: > > > ZipArchiveEntry.getExternalAttributes() is always returning 0 for me. I > > have pasted a hex dump of the zip file I'm testing with at the bottom of > > email: 2 files of 0 bytes, one named x and one named y. Both of their > > external attributes are 33184 (a081 in the hex dump). However, running > the > > following program gives me 0 for both of their external attributes: > > External attributes are stored inside the central directory which is at > the end of the archive. When using ZipArchiveInputStream the central > directory is only ever reached once all entries have been read. > > If you need to access the information from the central directory you > should use ZipFile rather than ZipArchiveInputStream. > Is that in the Javadoc? Gary > > Stefan > > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscr...@commons.apache.org > For additional commands, e-mail: user-h...@commons.apache.org > > -- E-Mail: garydgreg...@gmail.com | ggreg...@apache.org Java Persistence with Hibernate, Second Edition <http://www.manning.com/bauer3/> JUnit in Action, Second Edition <http://www.manning.com/tahchiev/> Spring Batch in Action <http://www.manning.com/templier/> Blog: http://garygregory.wordpress.com Home: http://garygregory.com/ Tweet! http://twitter.com/GaryGregory