Class LDIF

java.lang.Object
com.isode.dsapi.LDIF

public class LDIF extends Object
A class which enables loading and saving of records from/to LDIF files.
Author:
jp
  • Constructor Summary

    Constructors
    Constructor
    Description
    LDIF(String in_fnam, String out_fnam)
    Set up an LDIF stream for input and/or output with the given files.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Close the input/output files.
    static String
    Convert a GenericEntry to an LDIF-encoded string.
    Return a string describing all the errors since the last call to this function, or null if there are none.
    protected void
    Releases any native structures associated with this object.
    get()
    Get the next entry from the LDIF input file.
    get(long offset)
    Get the entry from the LDIF input file at the given file-offset, which should be a value returned by a call to tell().
    boolean
    Get the current 'allow unknown attributes' flag status.
    Get the next ChangeEntry from the LDIF input file.
    Get the next Entry from the LDIF input file.
    void
    Write an entry to the LDIF output file.
    void
    Add a comment to the output LDIF file.
    void
    seek(long offset)
    Re-seek the input file to the given file-offset, which should be a value previously returned by tell().
    void
    setAllowUnknownAttrs(boolean flag)
    Set the status of the 'allow unknown attributes' flag.
    long
    Return the current read file-offset in the input file, which can be used later on to seek() back to this point.
    Returns a String representation of the LDIF stream

    Methods inherited from class java.lang.Object

    clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait