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
Fields Modifier and Type Field Description static BlobObjectChecker
NULL_CHECKER
No-op implementation ofBlobObjectChecker
.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
endBlob(AnyObjectId id)
Finalize the blob checking.void
update(byte[] in, int offset, int len)
Check a new fragment of the blob.
-
-
-
Field Detail
-
NULL_CHECKER
static final BlobObjectChecker NULL_CHECKER
No-op implementation ofBlobObjectChecker
.
-
-
Method Detail
-
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
void endBlob(AnyObjectId id) throws CorruptObjectException
Finalize the blob checking.- Parameters:
id
- identity of the object being checked.- Throws:
CorruptObjectException
- if any error was detected.
-
-