public class JsonReader extends Object implements SearchResultReader
Reader and returns a SearchResult.| Modifier and Type | Field and Description |
|---|---|
private Reader |
jsonReader
Reader to read from.
|
private SortBehavior |
sortBehavior
Sort behavior.
|
| Constructor and Description |
|---|
JsonReader(Reader reader)
Creates a new json reader.
|
JsonReader(Reader reader,
SortBehavior sb)
Creates a new json reader.
|
private final Reader jsonReader
private final SortBehavior sortBehavior
public JsonReader(Reader reader)
reader - to read JSON frompublic JsonReader(Reader reader, SortBehavior sb)
reader - to read JSON fromsb - sort behavior of the search resultpublic SearchResult read() throws IOException
read in interface SearchResultReaderIOException - if an error occurs using the readerCopyright © 2003-2016 Virginia Tech. All Rights Reserved.