Interface Validator

  • All Known Implementing Classes:
    XmlSchemaValidator
    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 interface Validator
    Validate that the contents of a stream meets the expectations.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void validate​(java.io.InputStream stream)
      Validate that the contents of a stream meets the expectations.
    • Method Detail

      • validate

        void validate​(java.io.InputStream stream)
        Validate that the contents of a stream meets the expectations.
        Parameters:
        stream - The stream to validate
        Throws:
        javax.validation.ValidationException - When the stream doesn't meet expectations