|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.directory.shared.ldap.schema.ldif.extractor.impl.DefaultSchemaLdifExtractor
public class DefaultSchemaLdifExtractor
Extracts LDIF files for the schema repository onto a destination directory.
| Constructor Summary | |
|---|---|
DefaultSchemaLdifExtractor(java.io.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 java.net.URL |
getUniqueResource(java.lang.String resourceName,
java.lang.String resourceDescription)
Gets a unique resource from a Jar file. |
static java.io.InputStream |
getUniqueResourceAsStream(java.lang.String resourceName,
java.lang.String resourceDescription)
Gets the DBFILE resource from within a jar 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(java.io.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 java.io.IOException
extractOrCopy in interface SchemaLdifExtractoroverwrite - over write extracted structure if true, false otherwise
java.io.IOException - if schema already extracted and on IO errors
public void extractOrCopy()
throws java.io.IOException
extractOrCopy in interface SchemaLdifExtractorjava.io.IOException - if schema already extracted and on IO errors
public static java.io.InputStream getUniqueResourceAsStream(java.lang.String resourceName,
java.lang.String resourceDescription)
throws java.io.IOException
resourceName - the file name of the resource to loadresourceDescription - human description of the resource
java.io.IOException - if there are problems reading or finding a unique copy of the resource
public static java.net.URL getUniqueResource(java.lang.String resourceName,
java.lang.String resourceDescription)
throws java.io.IOException
resourceName - the name of the resourceresourceDescription - the description of the resource
java.io.IOException - if there is an IO error
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||