|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--dragon.onlinedb.BasicCollectionWriter
Writing collection to disk
Copyright: Copyright (c) 2005
Company: IST, Drexel University
| Field Summary | |
protected BasicArticleIndex |
articleIndex
|
protected java.lang.String |
charSet
|
protected ArticleParser |
parser
|
protected java.io.RandomAccessFile |
rafCollection
|
| Constructor Summary | |
BasicCollectionWriter(java.lang.String collectionFile,
java.lang.String indexFile,
boolean append)
|
|
| Method Summary | |
boolean |
add(Article article)
Adds an article to the collection |
void |
close()
Closes the collection writer and releases all resources. |
ArticleParser |
getArticleParser()
Gets the article parser of the collection writer |
void |
setArticleParser(ArticleParser parser)
Sets the article parser for the collection writer |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected java.io.RandomAccessFile rafCollection
protected BasicArticleIndex articleIndex
protected ArticleParser parser
protected java.lang.String charSet
| Constructor Detail |
public BasicCollectionWriter(java.lang.String collectionFile,
java.lang.String indexFile,
boolean append)
| Method Detail |
public ArticleParser getArticleParser()
CollectionWriter
getArticleParser in interface CollectionWriterpublic void setArticleParser(ArticleParser parser)
CollectionWriter
setArticleParser in interface CollectionWriterparser - the article parserpublic boolean add(Article article)
CollectionWriter
add in interface CollectionWriterarticle - an article
public void close()
CollectionWriter
close in interface CollectionWriter
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||