public class JsonWriter extends Object implements SearchResultWriter
SearchResult as JSON to a Writer.| Modifier and Type | Field and Description |
|---|---|
private Writer |
jsonWriter
Writer to write to.
|
| Constructor and Description |
|---|
JsonWriter(Writer writer)
Creates a new json writer.
|
private final Writer jsonWriter
public JsonWriter(Writer writer)
writer - to write JSON topublic void write(SearchResult result) throws IOException
write in interface SearchResultWriterresult - search result to writeIOException - if an error occurs using the writerCopyright © 2003-2017 Virginia Tech. All Rights Reserved.