commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "C. Grobmeier" <grobme...@possessed.de>
Subject Re: [compress] Discussing compress
Date Tue, 07 Mar 2006 08:46:06 GMT
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I have updated:
http://grobmeier.de/commons-compress-draft-2.zip

+ input/output streams are all in finally-blocks
+ Examples for the old tar/bzip2 way included
+ Patch in Bug 30494 included: fixes these examples :-)

Cheers,
Chris

C. Grobmeier wrote:
>>> 1) Please take care to always close your input/output streams. ie. do
>>> this in a finally() block so that in any case (excpetion) the streams
>>> were closed
> 
> OK, i will check this tonight or tomorrow evening :-)
> 
>>> 2) you cant handle directories now, maybe something you have on your
>>> todo list?
> 
> Yes, it's on my TODO, this package should only introduce the direction.
> 
>>> 2) The archiver uses java.io.File in its public interface.
>>> PLEASE provide Streams too. Internally you can create temp-files or
>>> whatever you would like to.
>>> So you might have something like 
>>> OutputStream os = Archiver.createEntry(String pathname);
>>>
>>> Why?
>>> From the view of VFS its simply easier to handle ;-) It would be great
>>> if you could handle this in your abstract archiver.
> 
> I think this should be no problem. I have it on my TODO by now.
> Regards,
> Chris
> 

- ---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.1 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFEDUhOkv8rKBUE/T4RAsTBAJ0ReEDicWq80b4GG+l+RUcUGWenKACfdXkh
dQ7XcOGowMslJyNPUx1w+6Y=
=mbN/
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message