org.opends.server.tools
Class LDIFDiff

java.lang.Object
  extended by org.opends.server.tools.LDIFDiff

public class LDIFDiff
extends java.lang.Object

This class provides a program that may be used to determine the differences between two LDIF files, generating the output in LDIF change format. There are several things to note about the operation of this program:

Note that this is only an option for cases in which both LDIF files can fit in memory. Also note that this will only compare live data in the LDIF files and will ignore comments and other elements that do not have any real impact on the way that the data is interpreted.


Constructor Summary
LDIFDiff()
           
 
Method Summary
static void main(java.lang.String[] args)
          Provides the command line arguments to the mainDiff method so that they can be processed.
static int mainDiff(java.lang.String[] args, boolean serverInitialized, java.io.OutputStream outStream, java.io.OutputStream errStream)
          Parses the provided command line arguments and performs the appropriate LDIF diff operation.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LDIFDiff

public LDIFDiff()
Method Detail

main

public static void main(java.lang.String[] args)
Provides the command line arguments to the mainDiff method so that they can be processed.

Parameters:
args - The command line arguments provided to this program.

mainDiff

public static int mainDiff(java.lang.String[] args,
                           boolean serverInitialized,
                           java.io.OutputStream outStream,
                           java.io.OutputStream errStream)
Parses the provided command line arguments and performs the appropriate LDIF diff operation.

Parameters:
args - The command line arguments provided to this program.
serverInitialized - Indicates whether the Directory Server has already been initialized (and therefore should not be initialized a second time).
outStream - The output stream to use for standard output, or null if standard output is not needed.
errStream - The output stream to use for standard error, or null if standard error is not needed.
Returns:
The return code for this operation. A value of zero indicates that all processing completed successfully. A nonzero value indicates that some problem occurred during processing.