@ThreadSafety(level=COMPLETELY_THREADSAFE) public final class FilterFileReader extends java.lang.Object implements java.io.Closeable
| Constructor | Description |
|---|---|
FilterFileReader(java.io.File filterFile) |
Creates a new filter file reader that will read from the specified file.
|
FilterFileReader(java.lang.String path) |
Creates a new filter file reader that will read from the file with the
specified path.
|
| Modifier and Type | Method | Description |
|---|---|---|
void |
close() |
Closes this filter file reader.
|
Filter |
readFilter() |
Reads the next filter from the file.
|
public FilterFileReader(@NotNull java.lang.String path) throws java.io.IOException
path - The path to the file to be read. It must not be null
and the file must exist.java.io.IOException - If a problem is encountered while opening the file
for reading.public FilterFileReader(@NotNull java.io.File filterFile) throws java.io.IOException
filterFile - The file to be read. It must not be null and
the file must exist.java.io.IOException - If a problem is encountered while opening the file
for reading.@Nullable public Filter readFilter() throws java.io.IOException, LDAPException
null if there are no
more filters to be read.java.io.IOException - If a problem is encountered while trying to read from
the file.LDAPException - If data read from the file can't be parsed as an
LDAP search filter.public void close() throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseablejava.io.IOException - If a problem is encountered while closing the reader.