Package org.eclipse.jgit.lfs
Class LfsBlobLoader
java.lang.Object
org.eclipse.jgit.lib.ObjectLoader
org.eclipse.jgit.lfs.LfsBlobLoader
An
ObjectLoader implementation that reads a media file from the LFS
storage.- Since:
- 4.11
-
Nested Class Summary
Nested classes/interfaces inherited from class org.eclipse.jgit.lib.ObjectLoader
ObjectLoader.Filter, ObjectLoader.SmallObject -
Constructor Summary
ConstructorsConstructorDescriptionLfsBlobLoader(Path mediaFile) Create a loader for the LFS media file at the given path. -
Method Summary
Methods inherited from class org.eclipse.jgit.lib.ObjectLoader
copyTo, getBytes, getBytes, getCachedBytes, isLarge
-
Constructor Details
-
LfsBlobLoader
Create a loader for the LFS media file at the given path.- Parameters:
mediaFile- path to the file- Throws:
IOException- in case of an error reading attributes
-
-
Method Details
-
getType
public int getType()- Specified by:
getTypein classObjectLoader
-
getSize
public long getSize()- Specified by:
getSizein classObjectLoader
-
getCachedBytes
- Specified by:
getCachedBytesin classObjectLoader- Throws:
LargeObjectException
-
openStream
- Specified by:
openStreamin classObjectLoader- Throws:
MissingObjectExceptionIOException
-