comp.lang.ada
 help / color / mirror / Atom feed
From: gautier_niouzes@hotmail.com
Subject: Re: zLibAda vs ZipAda (which should I use, if any)?
Date: Thu, 25 Aug 2016 16:43:14 -0700 (PDT)
Date: 2016-08-25T16:43:14-07:00	[thread overview]
Message-ID: <e14d45f2-808c-4693-8624-b984518f8d08@googlegroups.com> (raw)
In-Reply-To: <21dcddb3-1e20-4e54-afc7-fb66b1b6021e@googlegroups.com>

Le vendredi 26 août 2016 01:07:12 UTC+2, Aurele a écrit :
> Looking at AdaZip a bit closer with the Info I received (thanks guys), I do not think AdaZip provide file type specific extraction services (thanks for the heads up Qunying"). I may have to write that myself as a layer over or in addition to ZipAda.

Not sure about AdaZip, but Zip-Ada provides this service, and Jeff found which one: Traverse_Verbose.

  -- Same as Traverse, but Action gives also full technical informations
  -- about the compressed entry.
  generic
    with procedure Action(
      name             : String; -- 'name' is compressed entry's name
      file_index       : Zip_Streams.ZS_Index_Type;
      comp_size        : File_size_type;
      uncomp_size      : File_size_type;
      crc_32           : Interfaces.Unsigned_32;
      date_time        : Time;
      method           : PKZip_method;
      name_encoding    : Zip_name_encoding;
      read_only        : Boolean;
      encrypted_2_x    : Boolean; -- PKZip 2.x encryption
      user_code        : in out Integer
    );
  procedure Traverse_verbose( z: Zip_info );

You can find an example of scanning of the Zip file's directory for images here (using the non-verbose version):

http://globe3d.sf.net/g3d_html/globe_3d-textures__adb.htm#181_13

Cheers
Gautier


  reply	other threads:[~2016-08-25 23:43 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-08-25 20:17 zLibAda vs ZipAda (which should I use, if any)? Aurele
2016-08-25 21:02 ` Qun-Ying
2016-08-25 21:33 ` Jeffrey R. Carter
2016-08-25 22:07 ` Aurele
2016-08-25 23:07 ` Aurele
2016-08-25 23:43   ` gautier_niouzes [this message]
2016-08-25 23:55     ` Aurele
2016-08-26  0:18       ` gautier_niouzes
2016-08-26  1:44         ` Aurele
2016-08-26 12:36           ` gautier_niouzes
2016-08-26 14:23             ` Aurele
2016-08-26 15:16               ` gautier_niouzes
2016-08-26 15:46                 ` Jeffrey R. Carter
2016-08-26 16:05                 ` Aurele
2016-08-26 23:04                   ` Aurele
2016-08-27  5:30                     ` gautier_niouzes
2016-08-27 11:52                       ` Aurele
2016-08-27 16:31                         ` Aurele
2016-08-27 19:15                           ` gautier_niouzes
2016-08-27 19:33 ` Aurele
2016-08-27 20:16   ` Aurele
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox