Class LdifReader

  • All Implemented Interfaces:
    SearchResultReader

    public class LdifReader
    extends java.lang.Object
    implements SearchResultReader
    Reads an LDIF from a Reader and returns a SearchResponse. 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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • logger

        protected final org.slf4j.Logger logger
        Logger for this class.
    • Constructor Detail

      • LdifReader

        public LdifReader​(java.io.Reader reader)
        Creates a new ldif reader.
        Parameters:
        reader - to read LDIF from
    • 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 interface SearchResultReader
        Returns:
        search result derived from the LDIF
        Throws:
        java.io.IOException - if an error occurs using the reader