Package org.eclipse.jgit.lib
Interface BlobObjectChecker
public interface BlobObjectChecker
Verifies that a blob object is a valid object.
Unlike trees, commits and tags, there's no validity of blobs. Implementers can optionally implement this blob checker to reject certain blobs.
- Since:
- 4.9
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final BlobObjectCheckerNo-op implementation ofBlobObjectChecker. -
Method Summary
Modifier and TypeMethodDescriptionvoidendBlob(AnyObjectId id) Finalize the blob checking.voidupdate(byte[] in, int offset, int len) Check a new fragment of the blob.
-
Field Details
-
NULL_CHECKER
No-op implementation ofBlobObjectChecker.
-
-
Method Details
-
update
void update(byte[] in, int offset, int len) Check a new fragment of the blob.- Parameters:
in- input array of bytes.offset- offset to start at fromin.len- length of the fragment to check.
-
endBlob
Finalize the blob checking.- Parameters:
id- identity of the object being checked.- Throws:
CorruptObjectException- if any error was detected.
-