public ArchiveOutputStream createArchiveOutputStream(OutputStream s) throws IOException { return createArchiveOutputStream(s, Collections.<String, Object> emptyMap()); }
/** * Register all included archive formats so they can be used * as arguments to the ArchiveCommand.setFormat() method. * * Not thread-safe. */ public static void registerAll() { register("tar", new TarFormat()); //$NON-NLS-1$ register("tgz", new TgzFormat()); //$NON-NLS-1$ register("tbz2", new Tbz2Format()); //$NON-NLS-1$ register("txz", new TxzFormat()); //$NON-NLS-1$ register("zip", new ZipFormat()); //$NON-NLS-1$ }
/** * @since 4.0 */ public ArchiveOutputStream createArchiveOutputStream(OutputStream s, Map<String, Object> o) throws IOException { TarArchiveOutputStream out = new TarArchiveOutputStream(s, "UTF-8"); //$NON-NLS-1$ out.setLongFileMode(TarArchiveOutputStream.LONGFILE_POSIX); out.setBigNumberMode(TarArchiveOutputStream.BIGNUMBER_POSIX); return applyFormatOptions(out, o); }
/** * Register all included archive formats so they can be used * as arguments to the ArchiveCommand.setFormat() method. * * Not thread-safe. */ public static void registerAll() { register("tar", new TarFormat()); //$NON-NLS-1$ register("tgz", new TgzFormat()); //$NON-NLS-1$ register("tbz2", new Tbz2Format()); //$NON-NLS-1$ register("txz", new TxzFormat()); //$NON-NLS-1$ register("zip", new ZipFormat()); //$NON-NLS-1$ }