commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "C. Grobmeier" <grobme...@possessed.de>
Subject [compress] Draft 3 for discussion
Date Mon, 13 Mar 2006 11:04:36 GMT
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hey all,

i have a new draft for discussion.
Download it at:

* http://www.grobmeier.de/commons-compress-draft-3.zip

Of course, this draft is under heavy development. This means that it
lacks of javadoc and on some places it's not really well designed :-),
but it still grows.

Here are the new features:
+ Introduced the compressor-interface
+ Seperated between compressors and archivers
+ Implemented the BZip2 compressor (with File/FileInputStream)
+ introduced packages "archivers" and "compressors" and divided impl.'s
into it

The new Interface could be used like this:

	Compressor = Compress.getInstance(
		new BZip2CompressorType());
	compressor.compress(
		new File("C:\\Temp\\test.tar.bz2"));

Note that decompress() is not implemented yet.


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


TODO:
- - Provide InputStreams in the Archiver-Interface
- - Write JavaDoc
- - Compare rest of the plexus package to compress
- - propose new name, f.e. FileType


Mario, could you take a look please at the
Compressor.compress(InputStream) implementation and tell me if this is
what you want for Archiver too?

In your original mail you wrote OutputStream o =
Archiver.createEntry(""), but i don't understand why it could be of use
that i return an writeable Stream to you. Maybe you could explain this
in short terms :-)

Regards
Chris


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

iD8DBQFEFVHEkv8rKBUE/T4RAk+2AJ9TMj+txcAj6wvmODIM9hxvfwHSEgCeK5EA
46U65Relgj+qdgkkyTY4H9M=
=6RCf
-----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