commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sebb <seb...@gmail.com>
Subject Re: [Compress] Do output streams really need the putNextEntry() method?
Date Mon, 30 Mar 2009 15:39:17 GMT
On 30/03/2009, Stefan Bodewig <bodewig@apache.org> wrote:
> On 2009-03-30, sebb <sebbaz@gmail.com> wrote:
>
>  > The abstract parent class for archive output streams has the method
>
>  > putArchiveEntry(ArchiveEntry)
>
>  > but all the implementations - apart from Ar - also define the specific method
>
>  > putNextEntry(xxxArchiveEntry) where xxx = Zip, Jar, etc.
>
>  > Do we really need the latter method?
>
>
> Not really.
>
>  I assume they are there because the original codebases already
>  contained them.  In ZIP's case that's because the original Ant code
>  tried to mimic java.util.ZipOutputStream.

OK, I'll remove them.

What about the corresponding getNextxxxEntry() methods?

I suppose they do avoid a cast.

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

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


Mime
View raw message