Interface Verifier.OfStream

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.OfStream extends Verifier
A verifier interface to be used when the InputStream API provides the most natural interface for manipulating the content.

Such a verifier may be run concurrently in another thread while the data type adapter is writing the content. It must therefore be able to verify the content without interacting with PostgreSQL.

  • 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(InputStream s) throws Exception
      Completes normally if the verification succeeds, otherwise throwing an exception.

      The method must leave the stream at end-of-input. It may assume that the stream supports mark and reset efficiently. It must avoid interacting with PostgreSQL, in case it is run in another thread concurrently with the production of the content.

      Throws:
      Exception