• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Question on Handling/Getting Info on Items in Zip File

 
Ranch Hand
Posts: 585
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have a zip file in memory only, so I basically only have it as a stream (ZipInputStream).
I want to get information on the documents inside, but do not know how. For example, I do know the name (ZipEntry.getName), but is it possible to get the size (uncompressed), file-type, maybe properties (I know this would be so varied that it'd be a pain to do so, but I thought I'd throw it in there)?
 
Wanderer
Posts: 18671
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
ZipEntry has a number of methods that seem relevant in addition to getName() - have you looked at the rest of its API?
reply
    Bookmark Topic Watch Topic
  • New Topic