Interface Verifier.OfBuffer

All Superinterfaces:
Verifier
Enclosing interface:
Verifier
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public static interface Verifier.OfBuffer extends Verifier
A verifier interface to be used when the ByteBuffer API provides the most natural interface for manipulating the content.

Such a verifier will be run only when the content has been completely produced.

  • Nested Class Summary

    Nested classes/interfaces inherited from interface org.postgresql.pljava.adt.spi.Verifier

    Verifier.OfBuffer, Verifier.OfStream
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Completes normally if the verification succeeds, otherwise throwing an exception.
  • Method Details

    • verify

      void verify(ByteBuffer b) throws Exception
      Completes normally if the verification succeeds, otherwise throwing an exception.

      The buffer's position when this method returns must equal the value of the buffer's limit when the method was called.

      Throws:
      Exception