public class LfsBlobLoader extends ObjectLoader
ObjectLoader implementation that reads a media file from the LFS
storage.ObjectLoader.Filter, ObjectLoader.SmallObject| Constructor and Description |
|---|
LfsBlobLoader(Path mediaFile)
Create a loader for the LFS media file at the given path.
|
| Modifier and Type | Method and Description |
|---|---|
byte[] |
getCachedBytes() |
long |
getSize() |
int |
getType() |
ObjectStream |
openStream() |
copyTo, getBytes, getBytes, getCachedBytes, isLargepublic LfsBlobLoader(Path mediaFile) throws IOException
mediaFile - path to the fileIOException - in case of an error reading attributespublic int getType()
getType in class ObjectLoaderpublic long getSize()
getSize in class ObjectLoaderpublic byte[] getCachedBytes()
throws LargeObjectException
getCachedBytes in class ObjectLoaderLargeObjectExceptionpublic ObjectStream openStream() throws MissingObjectException, IOException
openStream in class ObjectLoaderMissingObjectExceptionIOExceptionCopyright © 2019 Eclipse JGit Project. All rights reserved.