public class ConfigWriter extends Object
It can be used either:
| Constructor and Description |
|---|
ConfigWriter(org.apache.directory.api.ldap.model.schema.SchemaManager schemaManager,
ConfigBean configBean)
Creates a new instance of ConfigWriter.
|
| Modifier and Type | Method and Description |
|---|---|
List<org.apache.directory.api.ldap.model.ldif.LdifEntry> |
getConvertedLdifEntries()
Gets the converted LDIF entries from the configuration bean.
|
void |
writeToFile(File file)
Writes the configuration bean as LDIF to the given file.
|
void |
writeToPath(String path)
Writes the configuration bean as LDIF to the given file.
|
String |
writeToString()
Writes the configuration to a String object.
|
public ConfigWriter(org.apache.directory.api.ldap.model.schema.SchemaManager schemaManager, ConfigBean configBean)
schemaManager - the schema managerconfigBean - the configuration beanpublic void writeToPath(String path) throws ConfigurationException, IOException
path - the output file pathConfigurationException - if an error occurs during the conversion to LDIFIOException - if an error occurs when writing the filepublic void writeToFile(File file) throws ConfigurationException, IOException
file - the output fileConfigurationException - if an error occurs during the conversion to LDIFIOException - if an error occurs when writing the filepublic String writeToString() throws ConfigurationException
ConfigurationException - if an error occurs during the conversion to LDIFpublic List<org.apache.directory.api.ldap.model.ldif.LdifEntry> getConvertedLdifEntries() throws ConfigurationException
ConfigurationException - if an error occurs during the conversion to LDIFCopyright © 2003–2018 The Apache Software Foundation. All rights reserved.