org.opends.server.tools.makeldif
Interface EntryWriter

All Known Implementing Classes:
MakeLDIF, MakeLDIFInputStream

public interface EntryWriter

This interface defines a method that may be used to write entries generated through the MakeLDIF utility.


Method Summary
 void closeEntryWriter()
          Notifies the entry writer that no more entries will be provided and that any associated cleanup may be performed.
 boolean writeEntry(Entry entry)
          Writes the provided entry to the appropriate target.
 

Method Detail

writeEntry

boolean writeEntry(Entry entry)
                   throws java.io.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:
java.io.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.