org.apache.directory.server.schema.bootstrap.partition
Class DbFileListing
java.lang.Object
org.apache.directory.server.schema.bootstrap.partition.DbFileListing
public class DbFileListing
- extends java.lang.Object
Parses the dbfile listing file within this jar.
- Version:
- $Rev: 664295 $
- Author:
- Apache Directory Project
Method Summary |
java.lang.String |
getIndexAttributeName(java.lang.String dbfile)
|
java.util.Set<java.lang.String> |
getIndexedAttributes()
Gets the user indices WITHOUT the system indices. |
DbFileType |
getType(java.lang.String dbfile)
|
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. |
java.util.Iterator<java.lang.String> |
iterator()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DbFileListing
public DbFileListing()
throws java.io.IOException
- Throws:
java.io.IOException
getUniqueResourceAsStream
public static java.io.InputStream getUniqueResourceAsStream(java.lang.String resourceName,
java.lang.String resourceDescription)
throws java.io.IOException
- Gets the DBFILE resource from within a jar off the base path. If another jar
with such a DBFILE resource exists then an error will result since the resource
is not unique across all the jars.
- Parameters:
resourceName
- the file name of the resource to loadresourceDescription
-
- Returns:
- the InputStream to read the contents of the resource
- Throws:
java.io.IOException
- if there are problems reading or finding a unique copy of the resource
getType
public DbFileType getType(java.lang.String dbfile)
iterator
public java.util.Iterator<java.lang.String> iterator()
getIndexAttributeName
public java.lang.String getIndexAttributeName(java.lang.String dbfile)
getIndexedAttributes
public java.util.Set<java.lang.String> getIndexedAttributes()
- Gets the user indices WITHOUT the system indices.
- Returns:
- set of user index names
Copyright © 2003-2009 Apache Software Foundation. All Rights Reserved.