private static class ContentSource.WorkingTreeSource extends ContentSource
ContentSource.Pair| Modifier and Type | Field and Description |
|---|---|
private java.lang.String |
current |
private WorkingTreeIterator |
iterator |
(package private) WorkingTreeIterator |
ptr |
private TreeWalk |
tw |
| Constructor and Description |
|---|
WorkingTreeSource(WorkingTreeIterator iterator) |
| Modifier and Type | Method and Description |
|---|---|
ObjectLoader |
open(java.lang.String path,
ObjectId id)
Open the object.
|
private void |
seek(java.lang.String path) |
long |
size(java.lang.String path,
ObjectId id)
Determine the size of the object.
|
create, createprivate final TreeWalk tw
private final WorkingTreeIterator iterator
private java.lang.String current
WorkingTreeIterator ptr
WorkingTreeSource(WorkingTreeIterator iterator)
public long size(java.lang.String path,
ObjectId id)
throws java.io.IOException
ContentSourcesize in class ContentSourcepath - the path of the file, relative to the root of the repository.id - blob id of the file, if known.java.io.IOException - the file cannot be accessed.public ObjectLoader open(java.lang.String path, ObjectId id) throws java.io.IOException
ContentSourceopen in class ContentSourcepath - the path of the file, relative to the root of the repository.id - blob id of the file, if known.java.io.IOException - the file cannot be accessed.private void seek(java.lang.String path)
throws java.io.IOException
java.io.IOException