|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--csm23.IO_Operations
Title: Performs IO Operations
Description:
Copyright: Copyright (c) 2004
Company: University of Surrey
| Constructor Summary | |
IO_Operations()
|
|
| Method Summary | |
static java.util.Hashtable |
loadSerializedObject(java.lang.String fileName)
Loads the hashtable object from the file |
static void |
main(java.lang.String[] args)
|
static void |
writeSerializedObjecttoFile(java.lang.String fileName,
java.util.Hashtable htable)
Writes a hashtable object to the specified file |
static void |
writeTextFile(java.lang.String fileName,
java.util.Hashtable wordFreqTable)
Writes the given hashtable which is the output of TextProcessing class (word frequency pairs) to the specified file |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public IO_Operations()
| Method Detail |
public static void writeSerializedObjecttoFile(java.lang.String fileName,
java.util.Hashtable htable)
fileName - the file which the object will be writtenhtable - the hash table which will be writtenpublic static java.util.Hashtable loadSerializedObject(java.lang.String fileName)
fileName - the input file
public static void writeTextFile(java.lang.String fileName,
java.util.Hashtable wordFreqTable)
fileName - the input file namewordFreqTable - hashtable which consists of word frequency pairs (The
keys are string type objects which show the words and their values' type is "Counter")public static void main(java.lang.String[] args)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||