public class JSONOutputFormat extends Object implements OutputFormat
Modifier and Type | Field and Description |
---|---|
protected static org.slf4j.Logger |
logger |
Constructor and Description |
---|
JSONOutputFormat(Object o) |
Modifier and Type | Method and Description |
---|---|
String |
contentType() |
void |
printResults(PrintWriter pw,
SearchRequest q,
String method,
String iteration,
int _RESULTS_LENGTH)
Outputs the results of query q to PrintWriter pw,
described by the method, iteration, and the specified
limit on the number of results (0 means no limit).
|
public JSONOutputFormat(Object o)
public void printResults(PrintWriter pw, SearchRequest q, String method, String iteration, int _RESULTS_LENGTH) throws IOException
OutputFormat
printResults
in interface OutputFormat
IOException
public String contentType()
contentType
in interface OutputFormat
Terrier Information Retrieval Platform 5.1. Copyright © 2004-2019, University of Glasgow