public class FileUtils
extends Object
Constructor and Description |
---|
FileUtils() |
Modifier and Type | Method and Description |
---|---|
List<Page> |
getPageList(String filePath)
Read back the page table from the hard coded file name.
|
List<Word> |
getWordList(String filePath)
Read back the word table from the hard coded filename.
|
boolean |
savePageTable(List<Page> pageTable,
String filePath)
Write the page table to a file.
|
boolean |
saveWordTable(List<Word> wordTable,
String filePath)
Write the wordTable to a file as an ObjectOutputStream
|
public boolean saveWordTable(List<Word> wordTable, String filePath)
wordTable
- word table that is being writtenfilePath
- output file pathpublic boolean savePageTable(List<Page> pageTable, String filePath)
pageTable
- table of UrlIDs mapped to Page objectsfilePath
- output file pathpublic List<Word> getWordList(String filePath)
filePath
- serialized word list filepublic List<Page> getPageList(String filePath)
filePath
- serialized page list file.