static ArchiveOutputStream createArchiveOutputStream(CommonsArchiver archiver, File archive) throws IOException,
        ArchiveException {
        return createArchiveOutputStream(archiver.getArchiveFormat(), archive);
    }
static ArchiveOutputStream createArchiveOutputStream ( CommonsArchiver archiver , File archive ) throws IOException , ArchiveException { return createArchiveOutputStream ( archiver . getArchiveFormat ( ) , archive ) ; }
Uses the {@link ArchiveStreamFactory} and the name of the given archiver to create a new
{@link ArchiveOutputStream} for the given archive {@link File}.

@param archiver the invoking archiver
@param archive the archive file to create the {@link ArchiveOutputStream} for
@return a new {@link ArchiveOutputStream}
@throws IOException propagated IOExceptions when creating the FileOutputStream.
@throws ArchiveException if the archiver name is not known