Top Description Fields Constructors Methods
org.eclipse.jgit.archive

public Class ArchiveFormats

extends Object
Class Inheritance
Imports
java.util.ArrayList, .List, org.eclipse.jgit.api.ArchiveCommand

Registers all format types from the org.eclipse.jgit.archive package for use via the ArchiveCommand API. See org.eclipse.jgit.archive.FormatActivator for an OSGi bundle activator that performs the same registration automatically.

Field Summary

Modifier and TypeField and Description
private static final List<String>

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
private static final void
public static void
registerAll()

Register all included archive formats so they can be used as arguments to the ArchiveCommand.setFormat() method.

public static void
unregisterAll()

Clean up by deregistering all formats that were registered by registerAll().

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

myFormatsback to summary
private static final List<String> myFormats

Constructor Detail

ArchiveFormatsback to summary
public ArchiveFormats()

Method Detail

registerback to summary
private static final void register(String name, ArchiveCommand.Format<?> fmt)
registerAllback to summary
public static void registerAll()

Register all included archive formats so they can be used as arguments to the ArchiveCommand.setFormat() method. Not thread-safe.

unregisterAllback to summary
public static void unregisterAll()

Clean up by deregistering all formats that were registered by registerAll(). Not thread-safe.