org.ldaptive.io
Class JsonReader

java.lang.Object
  extended by org.ldaptive.io.JsonReader
All Implemented Interfaces:
org.ldaptive.io.SearchResultReader

public class JsonReader
extends Object
implements org.ldaptive.io.SearchResultReader

Reads JSON from a Reader and returns a SearchResult.

Version:
$Revision: 2885 $ $Date: 2014-02-05 16:28:49 -0500 (Wed, 05 Feb 2014) $
Author:
Middleware Services

Constructor Summary
JsonReader(Reader reader)
          Creates a new json reader.
JsonReader(Reader reader, org.ldaptive.SortBehavior sb)
          Creates a new json reader.
 
Method Summary
 org.ldaptive.SearchResult read()
          Reads JSON data from the reader and returns a search result.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JsonReader

public JsonReader(Reader reader)
Creates a new json reader.

Parameters:
reader - to read JSON from

JsonReader

public JsonReader(Reader reader,
                  org.ldaptive.SortBehavior sb)
Creates a new json reader.

Parameters:
reader - to read JSON from
sb - sort behavior of the search result
Method Detail

read

public org.ldaptive.SearchResult read()
                               throws IOException
Reads JSON data from the reader and returns a search result.

Specified by:
read in interface org.ldaptive.io.SearchResultReader
Returns:
search result derived from the JSON
Throws:
IOException - if an error occurs using the reader


Copyright © 2003-2017 Virginia Tech. All Rights Reserved.