|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.directory.api.ldap.schemaextractor.impl.DefaultSchemaLdifExtractor
public class DefaultSchemaLdifExtractor
Extracts LDIF files for the schema repository onto a destination directory.
| Constructor Summary | |
|---|---|
DefaultSchemaLdifExtractor(File outputDirectory)
Creates an extractor which deposits files into the specified output directory. |
|
| Method Summary | |
|---|---|
void |
extractOrCopy()
Extracts the LDIF files from a Jar file or copies exploded LDIF resources without overwriting the resources if the schema has already been extracted. |
void |
extractOrCopy(boolean overwrite)
Extracts the LDIF files from a Jar file or copies exploded LDIF resources. |
static URL |
getUniqueResource(String resourceName,
String resourceDescription)
Gets a unique resource from the class loader. |
static InputStream |
getUniqueResourceAsStream(String resourceName,
String resourceDescription)
Gets the unique schema file resource from the class loader off the base path. |
boolean |
isExtracted()
Gets whether or not schema folder has been created or not. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultSchemaLdifExtractor(File outputDirectory)
outputDirectory - the directory where the schema root is extracted| Method Detail |
|---|
public boolean isExtracted()
isExtracted in interface SchemaLdifExtractor
public void extractOrCopy(boolean overwrite)
throws IOException
extractOrCopy in interface SchemaLdifExtractoroverwrite - over write extracted structure if true, false otherwise
IOException - if schema already extracted and on IO errors
public void extractOrCopy()
throws IOException
extractOrCopy in interface SchemaLdifExtractorIOException - if schema already extracted and on IO errors
public static InputStream getUniqueResourceAsStream(String resourceName,
String resourceDescription)
throws IOException
resourceName - the file name of the resource to loadresourceDescription - human description of the resource
IOException - if there are problems reading or finding a unique copy of the resource
public static URL getUniqueResource(String resourceName,
String resourceDescription)
throws IOException
resourceName - the name of the resourceresourceDescription - the description of the resource
IOException - if there is an IO error
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||