public class MakeLDIFInputStream extends InputStream implements EntryWriter
| Constructor and Description |
|---|
MakeLDIFInputStream(TemplateFile templateFile)
Creates a new MakeLDIF input stream that will generate entries based on the
provided template file.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes this input stream so that no more data may be read from it.
|
void |
closeEntryWriter()
Notifies the entry writer that no more entries will be provided and that
any associated cleanup may be performed.
|
int |
read()
Reads a single byte of data from this input stream.
|
int |
read(byte[] b,
int off,
int len)
Reads data from this input stream.
|
boolean |
writeEntry(TemplateEntry entry)
Writes the provided entry to the appropriate target.
|
available, mark, markSupported, read, reset, skippublic MakeLDIFInputStream(TemplateFile templateFile)
templateFile - The template file to use to generate the entries.public void close()
close in interface Closeableclose in interface AutoCloseableclose in class InputStreampublic int read() throws IOException
read in class InputStreamIOException - If a problem has occurred while generating data for
use by this input stream.public int read(byte[] b, int off, int len) throws IOException
read in class InputStreamb - The array into which the data should be read.off - The position in the array at which point the data read may be
placed.len - The maximum number of bytes that may be read into the
provided array.IOException - If a problem has occurred while generating data for
use by this input stream.public boolean writeEntry(TemplateEntry entry) throws IOException, MakeLDIFException
writeEntry in interface EntryWriterentry - The entry to be written.true if the entry writer will accept additional
entries, or false if no more entries should be
written.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 EntryWriterCopyright © 2010-2015 ForgeRock AS. All Rights Reserved.