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 final BlobObjectChecker
    No-op implementation of BlobObjectChecker.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Finalize the blob checking.
    void
    update(byte[] in, int offset, int len)
    Check a new fragment of the blob.
  • Field Details

  • 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 from in.
      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.