@Override public String getFilenameExtension() { return getArchiveFormat().getDefaultFileExtension(); }
/** * @see {@link ArchiveStreamFactory#createArchiveInputStream(String, InputStream)} */ static ArchiveInputStream createArchiveInputStream(CommonsArchiver archiver, InputStream in) throws ArchiveException { return createArchiveInputStream(archiver.getArchiveFormat(), in); }
/** * @see {@link ArchiveStreamFactory#createArchiveInputStream(String, InputStream)} */ static ArchiveInputStream createArchiveInputStream(CommonsArchiver archiver, InputStream in) throws ArchiveException { return createArchiveInputStream(archiver.getArchiveFormat(), in); }
@Override public String getFilenameExtension() { return getArchiveFormat().getDefaultFileExtension(); }
/** * 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 */ 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 */ static ArchiveOutputStream createArchiveOutputStream(CommonsArchiver archiver, File archive) throws IOException, ArchiveException { return createArchiveOutputStream(archiver.getArchiveFormat(), archive); }