/** * Clean up by deregistering all formats that were registered by registerAll(). * * <p>Not thread-safe. */ public static void unregisterAll() { for (String name : myFormats) { ArchiveCommand.unregisterFormat(name); } myFormats.clear(); }
private static final void register(String name, ArchiveCommand.Format<?> fmt) { myFormats.add(name); ArchiveCommand.registerFormat(name, fmt); }