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
OutputFormatprintResults in interface OutputFormatIOExceptionpublic String contentType()
contentType in interface OutputFormatTerrier Information Retrieval Platform 5.1. Copyright © 2004-2019, University of Glasgow