no.feide.moria.directory.index.tools
Class SerializableIndexCreator
java.lang.Object
  
no.feide.moria.directory.index.tools.SerializableIndexCreator
public final class SerializableIndexCreator
- extends java.lang.Object
 
Index creator. Will read a file (given by the first parameter) and parse it
 into a SerializableIndex object (actually uses
 WritableSerializableIndex internally). The index object is
 then written to file (given by the second parameter) for use with the
 Directory Manager.
| 
Field Summary | 
private static no.feide.moria.directory.index.SerializableIndex | 
generatedIndex
 
          Internal representation of the index. | 
 
 
| 
Method Summary | 
static void | 
main(java.lang.String[] args)
 
          Main method. | 
 
| Methods inherited from class java.lang.Object | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
generatedIndex
private static no.feide.moria.directory.index.SerializableIndex generatedIndex
- Internal representation of the index.
 
SerializableIndexCreator
private SerializableIndexCreator()
- Default private constructor.
 
main
public static void main(java.lang.String[] args)
                 throws java.io.IOException,
                        org.jdom.JDOMException,
                        java.lang.ClassNotFoundException
- Main method. Reads the index file, writes the index object, and
 finally verifies that the generated and written contents match.
- Parameters:
 args - First element should be the index specification file, second
            element should be the index object output file.
- Throws:
 java.io.IOException - If unable to read from or write to file.
org.jdom.JDOMException - If unable to parse the index file.
java.lang.ClassNotFoundException - If unable to read the SerializableIndex object
             from file when verifying results.
 
 
Copyright © 2001-2006 UNINETT FAS. All Rights Reserved.