public class LDIFModify extends Object
| Constructor and Description |
|---|
LDIFModify() |
| Modifier and Type | Method and Description |
|---|---|
static int |
ldifModifyMain(String[] args,
boolean serverInitialized,
OutputStream outStream,
OutputStream errStream)
Processes the command-line arguments and makes the appropriate updates to
the LDIF file.
|
static void |
main(String[] args)
Invokes
ldifModifyMain to perform the appropriate processing. |
static boolean |
modifyLDIF(LDIFReader sourceReader,
LDIFReader changeReader,
LDIFWriter targetWriter,
List<LocalizableMessage> errorList)
Applies the specified changes to the source LDIF, writing the modified
file to the specified target.
|
public LDIFModify()
public static boolean modifyLDIF(LDIFReader sourceReader, LDIFReader changeReader, LDIFWriter targetWriter, List<LocalizableMessage> errorList) throws IOException, LDIFException
sourceReader - The LDIF reader that will be used to read the LDIF
content to be modified.changeReader - The LDIF reader that will be used to read the changes
to be applied.targetWriter - The LDIF writer that will be used to write the
modified LDIF.errorList - A list into which any error messages generated while
processing changes may be added.true if all updates were successfully applied, or
false if any errors were encountered.IOException - If a problem occurs while attempting to read the
source or changes, or write the target.LDIFException - If a problem occurs while attempting to decode the
source or changes, or trying to determine whether
to include the entry in the output.public static void main(String[] args)
ldifModifyMain to perform the appropriate processing.args - The command-line arguments provided to the client.public static int ldifModifyMain(String[] args, boolean serverInitialized, OutputStream outStream, OutputStream errStream)
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.Copyright © 2010-2015 ForgeRock AS. All Rights Reserved.