Class FilterFileReader

java.lang.Object
com.unboundid.util.FilterFileReader
All Implemented Interfaces:
Closeable, AutoCloseable

This class provides a mechanism for reading LDAP search filters from a file. The file is expected to have one filter per line. Blank lines and lines beginning with the octothorpe (#) character will be ignored.
  • Constructor Details

    • FilterFileReader

      Creates a new filter file reader that will read from the file with the specified path.
      Parameters:
      path - The path to the file to be read. It must not be null and the file must exist.
      Throws:
      IOException - If a problem is encountered while opening the file for reading.
    • FilterFileReader

      public FilterFileReader(@NotNull File filterFile) throws IOException
      Creates a new filter file reader that will read from the specified file.
      Parameters:
      filterFile - The file to be read. It must not be null and the file must exist.
      Throws:
      IOException - If a problem is encountered while opening the file for reading.
  • Method Details