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, isLarge
public LfsBlobLoader(Path mediaFile) throws IOException
mediaFile
- path to the fileIOException
- in case of an error reading attributespublic int getType()
getType
in class ObjectLoader
public long getSize()
getSize
in class ObjectLoader
public byte[] getCachedBytes() throws LargeObjectException
getCachedBytes
in class ObjectLoader
LargeObjectException
public ObjectStream openStream() throws MissingObjectException, IOException
openStream
in class ObjectLoader
MissingObjectException
IOException
Copyright © 2019 Eclipse JGit Project. All rights reserved.