Package org.opends.server.tools.makeldif
Interface EntryWriter
-
- All Known Implementing Classes:
MakeLDIFInputStream
public interface EntryWriterThis interface defines a method that may be used to write entries generated through the MakeLDIF utility.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidcloseEntryWriter()Notifies the entry writer that no more entries will be provided and that any associated cleanup may be performed.booleanwriteEntry(TemplateEntry entry)Writes the provided entry to the appropriate target.
-
-
-
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:
trueif the entry writer will accept additional entries, orfalseif 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.
-
-