commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sebb <>
Subject [COMPRESS] Add getArchiveType() method to [Archive|Compressor]InputStream classes?
Date Tue, 11 May 2010 15:55:14 GMT
Seems to me that it would be useful to be able to find out what
ArchiveInputStream has been chosen by the ArchiveStreamFactory.

I'm thinking of adding something like:

public String getArchiveType() {
   return ArchiveStreamFactory.TAR ; // or ZIP etc.

to each of the AIS subclasses.

The AIS parent class could either have a dummy implementation, or the
parent method could be abstract to force subclasses to provide the

The same could be done for CompressorStreamFactory.


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message