Class ArchiveFormats


  • public class ArchiveFormats
    extends java.lang.Object
    Registers all format types from the org.eclipse.jgit.archive package for use via the ArchiveCommand API. See FormatActivator for an OSGi bundle activator that performs the same registration automatically.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private static java.util.List<java.lang.String> myFormats  
    • Constructor Summary

      Constructors 
      Constructor Description
      ArchiveFormats()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      private static void register​(java.lang.String name, ArchiveCommand.Format<?> fmt)  
      static void registerAll()
      Register all included archive formats so they can be used as arguments to the ArchiveCommand.setFormat() method.
      static void unregisterAll()
      Clean up by deregistering all formats that were registered by registerAll().
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • myFormats

        private static final java.util.List<java.lang.String> myFormats
    • Constructor Detail

      • ArchiveFormats

        public ArchiveFormats()
    • Method Detail

      • register

        private static final void register​(java.lang.String name,
                                           ArchiveCommand.Format<?> fmt)
      • registerAll

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

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