Top Description Fields Methods
org.eclipse.jgit.lib

public Interface BlobObjectChecker

Imports
org.eclipse.jgit.errors.CorruptObjectException

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

Modifier and TypeField and Description
public static final BlobObjectChecker
NULL_CHECKER

No-op implementation of BlobObjectChecker.

Method Summary

Modifier and TypeMethod and Description
public void
endBlob(AnyObjectId
identity of the object being checked.
id
)

Finalize the blob checking.

public void
update(byte[]
input array of bytes.
in
,
int
offset to start at from in.
offset
,
int
length of the fragment to check.
len
)

Check a new fragment of the blob.

Field Detail

NULL_CHECKERback to summary
public static final BlobObjectChecker NULL_CHECKER

No-op implementation of BlobObjectChecker.

Method Detail

endBlobback to summary
public void endBlob(AnyObjectId id) throws CorruptObjectException

Finalize the blob checking.

Parameters
id:AnyObjectId

identity of the object being checked.

Exceptions
CorruptObjectException:
if any error was detected.
updateback to summary
public void update(byte[] in, int offset, int len)

Check a new fragment of the blob.

Parameters
in:byte[]

input array of bytes.

offset:int

offset to start at from in.

len:int

length of the fragment to check.