Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

recoinx.clef
Class CLEFClient.TRECFormatWriter  view CLEFClient.TRECFormatWriter download CLEFClient.TRECFormatWriter.java

java.lang.Object
  extended byjava.io.Writer
      extended byjava.io.BufferedWriter
          extended byrecoinx.clef.CLEFClient.TRECFormatWriter
Enclosing class:
CLEFClient

private class CLEFClient.TRECFormatWriter
extends java.io.BufferedWriter

The TRECFormatWriter class extends the BufferedWriter to print to a File. It provides methods that format retrieval results to the official TREC format and print them.

Version:
0.2.9

Field Summary
 
Fields inherited from class java.io.BufferedWriter
 
Fields inherited from class java.io.Writer
lock
 
Constructor Summary
CLEFClient.TRECFormatWriter(java.io.Writer out)
          Creates a new TRECFormatWriter with the specified Writer.
 
Method Summary
 void writeFormattedDoc(java.lang.String runID, org.dom4j.Document doc)
          Writes the specified Document if the root element discovered equals CLEFRESULTLIST or CLEFMERGEDRESULTLIST.
The inidividual results are transformed into the official TREC result format using the specified String as run ID.
 
Methods inherited from class java.io.BufferedWriter
close, flush, newLine, write, write, write
 
Methods inherited from class java.io.Writer
write, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CLEFClient.TRECFormatWriter

public CLEFClient.TRECFormatWriter(java.io.Writer out)
Creates a new TRECFormatWriter with the specified Writer.

Method Detail

writeFormattedDoc

public void writeFormattedDoc(java.lang.String runID,
                              org.dom4j.Document doc)
                       throws java.io.IOException
Writes the specified Document if the root element discovered equals CLEFRESULTLIST or CLEFMERGEDRESULTLIST.
The inidividual results are transformed into the official TREC result format using the specified String as run ID.