org.apache.directory.shared.ldap.schema.ldif.extractor
Interface SchemaLdifExtractor

All Known Implementing Classes:
DefaultSchemaLdifExtractor

public interface SchemaLdifExtractor

Extracts LDIF files for the schema repository.

Version:
$Rev$
Author:
Apache Directory Project

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.
 boolean isExtracted()
          Gets whether or not the content has been extracted previously by this extractor or another into the directory file structure.
 

Method Detail

isExtracted

boolean isExtracted()
Gets whether or not the content has been extracted previously by this extractor or another into the directory file structure.

Returns:
true if extracted at least once, false otherwise

extractOrCopy

void extractOrCopy(boolean overwrite)
                   throws java.io.IOException
Extracts the LDIF files from a Jar file or copies exploded LDIF resources.

Parameters:
overwrite - over write extracted structure if true, false otherwise
Throws:
java.io.IOException - if schema already extracted and on IO errors

extractOrCopy

void extractOrCopy()
                   throws java.io.IOException
Extracts the LDIF files from a Jar file or copies exploded LDIF resources without overwriting the resources if the schema has already been extracted.

Throws:
java.io.IOException - if schema already extracted and on IO errors


Copyright © 2003-2011 Apache Software Foundation. All Rights Reserved.