|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--uk.ac.soton.harvester.OUTHarvester
The OUTHarvester class sets up the environment for the real citation processing. It opens the input and output files and then creates a deciter object to handle the real work.
Field Summary | |
(package private) java.lang.String |
id
id holds the identifier of the current article |
(package private) java.io.BufferedReader |
in
in simply holds a reference to the input reader. |
(package private) java.io.File |
inFile
inFile holds the file to which the input reader is to be connected. |
(package private) java.lang.String[] |
options
options holds the set of hints that control the deciter process. |
Constructor Summary | |
OUTHarvester()
|
Method Summary | |
java.lang.String |
getArticleId()
getArticleId accessor method for the id |
java.io.File |
getInputFile()
getInputFile accessor method for inFile |
int |
harvest(java.io.BufferedWriter xmlOutput)
Create the appropriate readers and writers, make a deciter object, set its hints/options and invoke its doit method to make it to do the dirty work. |
void |
setArticleId(java.lang.String aid)
setArticleId sets the article id |
void |
setInputFile(java.io.File inputFile)
setInputFile sets the value of inFile and tries to open a BufferedReader on that file. |
void |
setOptions(java.lang.String[] opts)
store the options (i.e. processing hints) for the deciter to use and change its behaviour. |
Methods inherited from class java.lang.Object |
|
Field Detail |
java.io.BufferedReader in
java.io.File inFile
java.lang.String id
java.lang.String[] options
Constructor Detail |
public OUTHarvester()
Method Detail |
public void setInputFile(java.io.File inputFile) throws java.io.FileNotFoundException
inputFile
- the File object to which a Reader is to be opened.public void setArticleId(java.lang.String aid)
aid
- the id to be used for this articlepublic java.io.File getInputFile()
public java.lang.String getArticleId()
public void setOptions(java.lang.String[] opts)
opts
- array of string options as passed on the command linepublic int harvest(java.io.BufferedWriter xmlOutput) throws java.io.IOException
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |