|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--gov.nist.nlpir.irf.conversion.IrfConverter
This abstract class models generic features of converters, which take "raw" data and turn it into Document objects.
Field Summary | |
private java.lang.Class |
proxyDocClass
An example of the class of proxy IR documents to be created |
private java.lang.Class |
realDocClass
An example of the class of real IR documents to be created |
Constructor Summary | |
IrfConverter()
|
Method Summary | |
abstract ProxyDocument |
convert1()
Converts one raw document's worth of data into its object counterpart |
java.lang.Class |
getProxyDocClass()
Returns the value of the proxy document class |
java.lang.Class |
getRealDocClass()
Returns the value of the real document class |
abstract int |
ignoreN(int numToSkip)
Starting from the current location in the input stream, skips the specified number of documents |
void |
setProxyDocClass(java.lang.String proxyDocClassName)
Sets the value of the proxy document class given a class name |
abstract void |
setRawDocLocation(java.lang.String loc)
Gives the converter the information it needs to access the raw data for the documents to be converted. |
void |
setRealDocClass(java.lang.String realDocClassName)
Sets the value of the real document class given a class name |
Methods inherited from class java.lang.Object |
|
Field Detail |
private java.lang.Class proxyDocClass
private java.lang.Class realDocClass
Constructor Detail |
public IrfConverter()
Method Detail |
public void setRealDocClass(java.lang.String realDocClassName)
public java.lang.Class getRealDocClass()
public void setProxyDocClass(java.lang.String proxyDocClassName)
public java.lang.Class getProxyDocClass()
public abstract void setRawDocLocation(java.lang.String loc) throws java.io.FileNotFoundException
loc
- string with info on where raw documents can be foundpublic abstract ProxyDocument convert1() throws java.io.IOException
public abstract int ignoreN(int numToSkip) throws java.io.IOException
numToSkip
- number of documents to skip
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |