private static class ContentSource.ObjectReaderSource extends ContentSource
ContentSource.Pair| Modifier and Type | Field and Description |
|---|---|
private ObjectReader |
reader |
| Constructor and Description |
|---|
ObjectReaderSource(ObjectReader reader) |
| Modifier and Type | Method and Description |
|---|---|
ObjectLoader |
open(java.lang.String path,
ObjectId id)
Open the object.
|
long |
size(java.lang.String path,
ObjectId id)
Determine the size of the object.
|
create, createprivate final ObjectReader reader
ObjectReaderSource(ObjectReader reader)
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.