Interface EntryWriter

  • All Known Implementing Classes:
    MakeLDIFInputStream

    public interface EntryWriter
    This interface defines a method that may be used to write entries generated through the MakeLDIF utility.
    • Method Detail

      • writeEntry

        boolean writeEntry​(TemplateEntry entry)
                    throws IOException,
                           MakeLDIFException
        Writes the provided entry to the appropriate target.
        Parameters:
        entry - The entry to be written.
        Returns:
        true if the entry writer will accept additional entries, or false if no more entries should be written.
        Throws:
        IOException - If a problem occurs while writing the entry to its intended destination.
        MakeLDIFException - If some other problem occurs.
      • closeEntryWriter

        void closeEntryWriter()
        Notifies the entry writer that no more entries will be provided and that any associated cleanup may be performed.