org.opends.server.tools
Class LDIFSearch

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

public class LDIFSearch
extends java.lang.Object

This class provides a program that may be used to search LDIF files. It is modeled after the LDAPSearch tool, with the primary differencing being that all of its data comes from LDIF rather than communicating over LDAP. However, it does have a number of differences that allow it to perform multiple operations in a single pass rather than requiring multiple passes through the LDIF.


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

Constructor Detail

LDIFSearch

public LDIFSearch()
Method Detail

main

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

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

mainSearch

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

Parameters:
args - The command line arguments provided to this program.
initializeServer - True if server initialization should be done.
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.