Class ContentSource.WorkingTreeSource

java.lang.Object
org.eclipse.jgit.diff.ContentSource
org.eclipse.jgit.diff.ContentSource.WorkingTreeSource
Enclosing class:
ContentSource

private static class ContentSource.WorkingTreeSource extends ContentSource
  • Field Details

  • Constructor Details

  • Method Details

    • size

      public long size(String path, ObjectId id) throws IOException
      Description copied from class: ContentSource
      Determine the size of the object.
      Specified by:
      size in class ContentSource
      Parameters:
      path - the path of the file, relative to the root of the repository.
      id - blob id of the file, if known.
      Returns:
      the size in bytes.
      Throws:
      IOException - the file cannot be accessed.
    • open

      public ObjectLoader open(String path, ObjectId id) throws IOException
      Description copied from class: ContentSource
      Open the object.
      Specified by:
      open in class ContentSource
      Parameters:
      path - the path of the file, relative to the root of the repository.
      id - blob id of the file, if known.
      Returns:
      a loader that can supply the content of the file. The loader must be used before another loader can be obtained from this same source.
      Throws:
      IOException - the file cannot be accessed.
    • seek

      private void seek(String path) throws IOException
      Throws:
      IOException