Package org.ldaptive.io
Class JsonReader
- java.lang.Object
-
- org.ldaptive.io.JsonReader
-
- All Implemented Interfaces:
SearchResultReader
public class JsonReader extends java.lang.Object implements SearchResultReader
Reads JSON from aReader
and returns aSearchResponse
.- Author:
- Middleware Services
-
-
Constructor Summary
Constructors Constructor Description JsonReader(java.io.Reader reader)
Creates a new json reader.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SearchResponse
read()
Reads JSON data from the reader and returns a search result.
-
-
-
Method Detail
-
read
public SearchResponse read() throws java.io.IOException
Reads JSON data from the reader and returns a search result.- Specified by:
read
in interfaceSearchResultReader
- Returns:
- search result derived from the JSON
- Throws:
java.io.IOException
- if an error occurs using the reader
-
-