public class MakeLDIF extends Object implements EntryWriter
Constructor and Description |
---|
MakeLDIF()
Creates a new instance of this utility.
|
Modifier and Type | Method and Description |
---|---|
void |
closeEntryWriter()
Notifies the entry writer that no more entries will be provided and that
any associated cleanup may be performed.
|
static void |
main(String[] args)
Invokes the
makeLDIFMain method with the provided set of
arguments. |
static int |
main(String[] args,
OutputStream outStream,
OutputStream errStream)
Provides the command-line arguments to the main application for
processing and returns the exit code as an integer.
|
int |
makeLDIFMain(String[] args)
Processes the provided set of command-line arguments and begins generating
the LDIF content.
|
int |
makeLDIFMain(String[] args,
boolean initializeServer,
boolean initializeSchema,
OutputStream outStream,
OutputStream errStream)
Processes the provided set of command-line arguments and begins generating
the LDIF content.
|
boolean |
writeEntry(TemplateEntry entry)
Writes the provided entry to the appropriate target.
|
public MakeLDIF()
makeLDIFMain
method.public static void main(String[] args)
makeLDIFMain
method with the provided set of
arguments.args
- The command-line arguments provided for this program.public static int main(String[] args, OutputStream outStream, OutputStream errStream)
args
- The set of command-line arguments provided to this
program.outStream
- The output stream for standard output.errStream
- The output stream for standard error.public int makeLDIFMain(String[] args, boolean initializeServer, boolean initializeSchema, OutputStream outStream, OutputStream errStream)
args
- The command-line arguments provided for this program.initializeServer
- Indicates whether to initialize the server.initializeSchema
- Indicates whether to initialize the schema.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.public int makeLDIFMain(String[] args)
args
- The command-line arguments provided for this program.public boolean writeEntry(TemplateEntry entry) throws IOException, MakeLDIFException
writeEntry
in interface EntryWriter
entry
- The entry to be written.true
if the entry writer will accept more entries, or
false
if not.IOException
- If a problem occurs while writing the entry to its
intended destination.MakeLDIFException
- If some other problem occurs.public void closeEntryWriter()
closeEntryWriter
in interface EntryWriter
Copyright © 2010-2016 ForgeRock AS. All Rights Reserved.