Class AbstractHeaderCheck

All Implemented Interfaces:
Configurable, Contextualizable, ExternalResourceHolder, FileSetCheck
Direct Known Subclasses:
HeaderCheck, RegexpHeaderCheck

public abstract class AbstractHeaderCheck extends AbstractFileSetCheck implements ExternalResourceHolder
Abstract super class for header checks. Provides support for header and headerFile properties.
  • Field Details

    • ESCAPED_LINE_FEED_PATTERN

      private static final Pattern ESCAPED_LINE_FEED_PATTERN
      Pattern to detect occurrences of '\n' in text.
    • readerLines

      private final List<String> readerLines
      The lines of the header file.
    • headerFile

      private URI headerFile
      Specify the name of the file containing the required header.
    • charset

      private Charset charset
      Specify the character encoding to use when reading the headerFile.
  • Constructor Details

    • AbstractHeaderCheck

      protected AbstractHeaderCheck()
      Creates a new AbstractHeaderCheck instance.
  • Method Details