ZipEntry in Netrexx

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

ZipEntry in Netrexx

Quique Britto
Hi all,

I can't seem to obtain the zip entry details I require, I would like to
obtain uzse the getTime(), getSize(), getCRC() etc...
When I add "say ze.getTime()" to the below code I received the flwg error
message.

>>>>the method getTime() cannot be found in the java.lang.object class or
superclass

any help will be apprciated

Thks



-- open file chooser
  returnedval = fc.showOpenDialog( parent.mainwindow )

  -- query the filechooser to get user input
  if returnedval = JFileChooser.APPROVE_OPTION then
    do
      zp = fc.getSelectedFile()
      zf = ZipFile( zp )
      entries = zf.entries()


      -- convert selected archive to string format
      zps = zp.toString()

      loop while entries.hasMoreElements()
        ze  = entries.nextElement()
        say ze.getTime()
      end
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://ns.hursley.ibm.com/pipermail/ibm-netrexx/attachments/20100202/aebe2be8/attachment.html
Reply | Threaded
Open this post in threaded view
|

ZipEntry in Netrexx

rvjansen
Hi

you will probably have to cast these back to ZipEntry, like in ze = ZipEntry entries.nextElement()

let me know what happens

best regards,

Ren?.

On 2 feb 2010, at 15:20, Quique Britto wrote:

> Hi all,
>
> I can't seem to obtain the zip entry details I require, I would like to obtain uzse the getTime(), getSize(), getCRC() etc...
> When I add "say ze.getTime()" to the below code I received the flwg error message.
>
> >>>>the method getTime() cannot be found in the java.lang.object class or superclass
>
> any help will be apprciated
>
> Thks
>
>
>
> -- open file chooser
>   returnedval = fc.showOpenDialog( parent.mainwindow )
>
>   -- query the filechooser to get user input
>   if returnedval = JFileChooser.APPROVE_OPTION then
>     do
>       zp = fc.getSelectedFile()
>       zf = ZipFile( zp )
>       entries = zf.entries()
>      
>      
>       -- convert selected archive to string format
>       zps = zp.toString()
>      
>       loop while entries.hasMoreElements()                
>         ze  = entries.nextElement()  
>         say ze.getTime()    
>       end
> _______________________________________________
> Ibm-netrexx mailing list
> [hidden email]
>


Reply | Threaded
Open this post in threaded view
|

ZipEntry in Netrexx

britten /Quique Britto (SPAIN VAL Export Mngr AMX)
seems to work

many thanks




-----Mensaje original-----
De: [hidden email] [mailto:[hidden email]] En nombre de Ren? Jansen
Enviado el: martes, 02 de febrero de 2010 15:53
Para: IBM Netrexx
Asunto: Re: [Ibm-netrexx] ZipEntry in Netrexx

Hi

you will probably have to cast these back to ZipEntry, like in ze = ZipEntry entries.nextElement()

let me know what happens

best regards,

Ren?.

On 2 feb 2010, at 15:20, Quique Britto wrote:

> Hi all,
>
> I can't seem to obtain the zip entry details I require, I would like to obtain uzse the getTime(), getSize(), getCRC() etc...
> When I add "say ze.getTime()" to the below code I received the flwg error message.
>
> >>>>the method getTime() cannot be found in the java.lang.object class
> >>>>or superclass
>
> any help will be apprciated
>
> Thks
>
>
>
> -- open file chooser
>   returnedval = fc.showOpenDialog( parent.mainwindow )
>
>   -- query the filechooser to get user input
>   if returnedval = JFileChooser.APPROVE_OPTION then
>     do
>       zp = fc.getSelectedFile()
>       zf = ZipFile( zp )
>       entries = zf.entries()
>      
>      
>       -- convert selected archive to string format
>       zps = zp.toString()
>      
>       loop while entries.hasMoreElements()                
>         ze  = entries.nextElement()  
>         say ze.getTime()    
>       end
> _______________________________________________
> Ibm-netrexx mailing list
> [hidden email]
>


_______________________________________________
Ibm-netrexx mailing list
[hidden email]




DISCLAIMER:
En cumplimiento del art?culo 5 de la Ley Org?nica de Protecci?n de Datos 15/1999, le informamos que sus datos personales est?n incorporados a un fichero denominado clientes, con la ?nica finalidad de mantener relaciones profesionales. Si lo desea puede ejercer los derechos de acceso, rectificaci?n, cancelaci?n u oposici?n de sus datos personales dirigi?ndose a: COSCO IBERIA  S.A. -Responsable Protecci?n de Datos- calle Casanova, 2, 6? planta de Barcelona (08011).
Este mensaje y cualquier documento que lleve adjunto, es confidencial y destinado ?nicamente a la persona o entidad a quien ha sido enviado. Si Usted ha recibido este mensaje por error, le informamos que el contenido en el mismo es reservado y el uso no autorizado est? prohibido legalmente,por ello,por favor , le rogamos que nos lo notifique al e-mail: [hidden email] o al tel?fono 93 304 71 26
Si su e-mail no ha podido ser entregado al buz?n de su destinatario,  por favor reenv?elo a la direcci?n [hidden email]
If your mail could not be delivered correctly, please resend it to [hidden email]