Class InMemoryInserter

java.lang.Object
org.eclipse.jgit.lib.ObjectInserter
com.google.gerrit.server.git.InMemoryInserter
All Implemented Interfaces:
AutoCloseable

public class InMemoryInserter extends org.eclipse.jgit.lib.ObjectInserter
  • Nested Class Summary

    Nested classes/interfaces inherited from class org.eclipse.jgit.lib.ObjectInserter

    org.eclipse.jgit.lib.ObjectInserter.Filter, org.eclipse.jgit.lib.ObjectInserter.Formatter
  • Constructor Summary

    Constructors
    Constructor
    Description
    InMemoryInserter(org.eclipse.jgit.lib.ObjectReader reader)
     
    InMemoryInserter(org.eclipse.jgit.lib.Repository repo)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
    void
     
    void
     
    int
     
    com.google.common.collect.ImmutableList<InsertedObject>
     
    org.eclipse.jgit.lib.ObjectId
    insert(int type, byte[] data)
     
    org.eclipse.jgit.lib.ObjectId
    insert(int type, byte[] data, int off, int len)
     
    org.eclipse.jgit.lib.ObjectId
    insert(int type, long length, InputStream in)
     
    org.eclipse.jgit.lib.ObjectId
     
    org.eclipse.jgit.transport.PackParser
     
    org.eclipse.jgit.lib.ObjectReader
     

    Methods inherited from class org.eclipse.jgit.lib.ObjectInserter

    buffer, digest, idFor, idFor, idFor, idFor, insert, insert, insert

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • InMemoryInserter

      public InMemoryInserter(org.eclipse.jgit.lib.ObjectReader reader)
    • InMemoryInserter

      public InMemoryInserter(org.eclipse.jgit.lib.Repository repo)
  • Method Details

    • insert

      public org.eclipse.jgit.lib.ObjectId insert(int type, long length, InputStream in) throws IOException
      Specified by:
      insert in class org.eclipse.jgit.lib.ObjectInserter
      Throws:
      IOException
    • insert

      public org.eclipse.jgit.lib.ObjectId insert(int type, byte[] data)
      Overrides:
      insert in class org.eclipse.jgit.lib.ObjectInserter
    • insert

      @CanIgnoreReturnValue public org.eclipse.jgit.lib.ObjectId insert(int type, byte[] data, int off, int len)
      Overrides:
      insert in class org.eclipse.jgit.lib.ObjectInserter
    • insert

      @CanIgnoreReturnValue public org.eclipse.jgit.lib.ObjectId insert(InsertedObject obj)
    • newPackParser

      public org.eclipse.jgit.transport.PackParser newPackParser(InputStream in)
      Specified by:
      newPackParser in class org.eclipse.jgit.lib.ObjectInserter
    • newReader

      public org.eclipse.jgit.lib.ObjectReader newReader()
      Specified by:
      newReader in class org.eclipse.jgit.lib.ObjectInserter
    • flush

      public void flush()
      Specified by:
      flush in class org.eclipse.jgit.lib.ObjectInserter
    • close

      public void close()
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in class org.eclipse.jgit.lib.ObjectInserter
    • getInsertedObjects

      public com.google.common.collect.ImmutableList<InsertedObject> getInsertedObjects()
    • getInsertedObjectCount

      public int getInsertedObjectCount()
    • clear

      public void clear()