Class PackObjectSizeIndexLoader

java.lang.Object
org.eclipse.jgit.internal.storage.file.PackObjectSizeIndexLoader

public class PackObjectSizeIndexLoader extends Object
Chooses the specific implementation of the object-size index based on the file version.
  • Constructor Details

    • PackObjectSizeIndexLoader

      public PackObjectSizeIndexLoader()
  • Method Details

    • load

      public static PackObjectSizeIndex load(InputStream in) throws IOException
      Read an object size index from the stream
      Parameters:
      in - input stream at the beginning of the object size data
      Returns:
      an implementation of the object size index
      Throws:
      IOException - error reading the stream, empty stream or content is not an object size index