|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--edu.berkeley.cs.db.yfilterplus.utility.DocumentReader
| Constructor Summary | |
DocumentReader()
|
|
| Method Summary | |
static java.util.ArrayList |
getFileNames(java.lang.String docSource)
get all the files in a directory with the ".xml" file extension |
static java.util.ArrayList |
getFileNames(java.lang.String docSource,
int DOCS)
get a certain number of files in a directory with the ".xml" file extension |
static java.util.ArrayList |
getFileNames(java.lang.String docSource,
java.lang.String extension)
get all the files in a directory with a certain file extension |
static java.lang.String |
getLocalFileName(java.lang.String name)
get short file name, i.e., the name without the path included it is equivalent to File.getName() |
static java.util.ArrayList |
getShortFileNames(java.lang.String docSource,
java.lang.String extension)
get all the files in a directory with a certain file extension |
static void |
indexDocuments(java.lang.String docDir)
index all the xml files in a directory that have been sorted alphabetically. |
static void |
main(java.lang.String[] args)
|
static java.lang.String |
readDoctoString(java.lang.String filename)
read a document from the disk to a string |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public DocumentReader()
| Method Detail |
public static java.lang.String readDoctoString(java.lang.String filename)
filename -
public static java.util.ArrayList getFileNames(java.lang.String docSource,
int DOCS)
docSource - DOCS -
public static java.util.ArrayList getFileNames(java.lang.String docSource)
docSource -
public static java.util.ArrayList getFileNames(java.lang.String docSource,
java.lang.String extension)
docSource - extension -
public static java.util.ArrayList getShortFileNames(java.lang.String docSource,
java.lang.String extension)
docSource - extension -
public static void indexDocuments(java.lang.String docDir)
docDir - public static java.lang.String getLocalFileName(java.lang.String name)
name -
public static void main(java.lang.String[] args)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||