Package org.ldaptive.io
Class LdifReader
- java.lang.Object
-
- org.ldaptive.io.LdifReader
-
- All Implemented Interfaces:
SearchResultReader
public class LdifReader extends java.lang.Object implements SearchResultReader
Reads an LDIF from aReader
and returns aSearchResponse
. This implementation only supports entry records. It does not support change records or include statements.- Author:
- Middleware Services
-
-
Field Summary
Fields Modifier and Type Field Description protected org.slf4j.Logger
logger
Logger for this class.
-
Constructor Summary
Constructors Constructor Description LdifReader(java.io.Reader reader)
Creates a new ldif reader.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SearchResponse
read()
Reads LDIF data from the reader and returns a search result.
-
-
-
Method Detail
-
read
public SearchResponse read() throws java.io.IOException
Reads LDIF data from the reader and returns a search result.- Specified by:
read
in interfaceSearchResultReader
- Returns:
- search result derived from the LDIF
- Throws:
java.io.IOException
- if an error occurs using the reader
-
-