Package org.eclipse.jgit.diff
Class ContentSource.WorkingTreeSource
java.lang.Object
org.eclipse.jgit.diff.ContentSource
org.eclipse.jgit.diff.ContentSource.WorkingTreeSource
- Enclosing class:
- ContentSource
-
Nested Class Summary
Nested classes/interfaces inherited from class org.eclipse.jgit.diff.ContentSource
ContentSource.Pair -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate Stringprivate final WorkingTreeIterator(package private) WorkingTreeIteratorprivate final TreeWalk -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.eclipse.jgit.diff.ContentSource
create, create
-
Field Details
-
tw
-
iterator
-
current
-
ptr
-
-
Constructor Details
-
WorkingTreeSource
WorkingTreeSource(WorkingTreeIterator iterator)
-
-
Method Details
-
size
Description copied from class:ContentSourceDetermine the size of the object.- Specified by:
sizein classContentSource- 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
Description copied from class:ContentSourceOpen the object.- Specified by:
openin classContentSource- 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
- Throws:
IOException
-