.NET
  Home arrow .NET arrow Page 2 - SmartZip Archive File Library – Creating a...
ASP Free Forums 
.NET  
ASP  
ASP Code  
ASP.NET  
ASP.NET Code  
BrainDump  
C#  
Code Examples  
Database  
Database Code  
IIS  
Microsoft Access  
MS SQL Server  
Visual Basic.NET  
Windows Scripting  
Windows Security  
XML  
ASP Web Hosting  
ASP.NET Web Hosting 
Dedicated Servers 
Moblin 
JMSL Numerical Library 
Windows Web Hosting
 
IBM® developerWorks 
Sun Developer Network 
Weekly Newsletter
 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid 
Request Media Kit
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
.NET

SmartZip Archive File Library – Creating and Using Archive Files
By: Michael Swanson
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 4 stars4 stars4 stars4 stars4 stars / 10
    2005-02-28

    Table of Contents:
  • SmartZip Archive File Library – Creating and Using Archive Files
  • The ZipEntry Class
  • Opening a Zip File
  • Other Formats

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
     
    ADVERTISEMENT


    SmartZip Archive File Library – Creating and Using Archive Files - The ZipEntry Class


    (Page 2 of 4 )

    The ZipEntry class is very useful for maintaining and reading metadata on the files you add or remove from a zip file. The ZipEntry object also acts as the marker through which the ZipOutputStream and ZipInputStream know which file in the compressed archive you are reading. The ZipEntry class has several members which are particularly important or useful. They are as follows:

    1. Name: This is the only required attribute (it must be set in the constructor) and contains the name of the file being compressed.

    2. Comment: Allows you to set a comment on the entry, useful for holding random information about the file.

    3. DateTime:  Contains the date and time of the last modification of the zipped file.

    4. isCrypted:  If a zip file you open happens to be encrypted, this will be set, and you will need to decrypt the file.

    5. Size:  Gets the size of the entry, after it is uncompressed.

    6. CompressedSize:  Gets the compressed size of an entry.

    7. Version:  This holds the minimum Zip file version implementation required to extract this entry.

    8. VersionMadeBy:  This holds the version of Zip implementation this entry was created with.

    More .NET Articles
    More By Michael Swanson


       · Hello Michael, Very nice article man :)Thanks,Michael Youssef
       · Thanks for the praise, I appreciate it.Any further comments on the article,...
       · I'm telling you the truth ;-). The article is good. You know what, maybe we...
       · That sounds like a great idea. PM me on the forums or email me and we can talk...
       · FileStream fs2 = new FileStream("c:\\reportsjs1.txt",FileMode.Open); byte[]...
       · Hello michael,I am getting an error in this line of code Dim s As...
       · I got an error in this part...Dim entryName As String =...
     

    .NET ARTICLES

    - More on Commands, Input and the WPF
    - Grouping and Aggregating When Querying LINQ ...
    - Commands, Input and the WPF
    - Keyboard and Ink Input with WPF
    - Mouse Input and the WPF
    - Input with Windows Presentation Foundation
    - Introducing LINQ with XML and Databases
    - An Introduction to LINQ
    - Querying LINQ to SQL: Basics
    - Completing a Simple Storefront with LINQ
    - Knowing Your Environment: the System.Environ...
    - Creating the Home Page for a Simple Storefro...
    - LINQ Quickly with Language Integrated Queries
    - Introducing LINQ to SQL Designer using Visua...
    - Beginning LINQ to SQL Using Visual Studio 20...





    © 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway