|
||||||||||
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 extractedMethod Detail |
---|
public boolean isExtracted()
isExtracted
in interface SchemaLdifExtractor
public void extractOrCopy(boolean overwrite) throws java.io.IOException
extractOrCopy
in interface SchemaLdifExtractor
overwrite
- over write extracted structure if true, false otherwise
java.io.IOException
- if schema already extracted and on IO errorspublic void extractOrCopy() throws java.io.IOException
extractOrCopy
in interface SchemaLdifExtractor
java.io.IOException
- if schema already extracted and on IO errorspublic 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 resourcepublic 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 |