org.apache.xindice.tools.command
Class ImportTree
java.lang.Object
|
+--org.apache.xindice.tools.command.Command
|
+--org.apache.xindice.tools.command.ImportTree
- public class ImportTree
- extends Command
ImportTree.java is designed to take a directory/file path and create a Collection
from it's name. The files within the directory are converted into Documents
and then stored into the newly created Collection with their filename as a document key
NOTE: If the collection passed in with the -c option already exists it will be overwritten!
- Version:
- CVS $Revision: 1.11 $, $Date: 2003/08/09 21:19:53 $
Method Summary |
protected java.lang.String |
createCollection(java.lang.String baseCollection,
java.lang.String newCollection)
|
boolean |
execute(java.util.Hashtable table)
|
protected void |
importFile(java.lang.String baseCollection,
java.lang.String path,
java.lang.String name)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ImportTree
public ImportTree()
execute
public boolean execute(java.util.Hashtable table)
throws java.lang.Exception
- Overrides:
execute
in class Command
importFile
protected void importFile(java.lang.String baseCollection,
java.lang.String path,
java.lang.String name)
throws java.lang.Exception
createCollection
protected java.lang.String createCollection(java.lang.String baseCollection,
java.lang.String newCollection)
throws java.lang.Exception
Copyright (c) 1999-2003 The Apache Software Foundation. All Rights Reserved.