java.lang.Object
org.eclipse.jgit.internal.storage.file.UnpackedObject
Loose object loader. This class loads an object not stored in a pack.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ObjectLoader
parse
(byte[] raw, AnyObjectId id) Parse an object from the unpacked object format.
-
Constructor Details
-
UnpackedObject
public UnpackedObject()
-
-
Method Details
-
parse
Parse an object from the unpacked object format.- Parameters:
raw
- complete contents of the compressed object.id
- expected ObjectId of the object, used only for error reporting in exceptions.- Returns:
- loader to read the inflated contents.
- Throws:
IOException
- the object cannot be parsed.
-