org.ldaptive.io
Class JsonWriter

java.lang.Object
  extended by org.ldaptive.io.JsonWriter
All Implemented Interfaces:
org.ldaptive.io.SearchResultWriter

public class JsonWriter
extends Object
implements org.ldaptive.io.SearchResultWriter

Writes a SearchResult as JSON to a Writer.

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

Constructor Summary
JsonWriter(Writer writer)
          Creates a new json writer.
 
Method Summary
 void write(org.ldaptive.SearchResult result)
          Writes the supplied search result to the writer.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JsonWriter

public JsonWriter(Writer writer)
Creates a new json writer.

Parameters:
writer - to write JSON to
Method Detail

write

public void write(org.ldaptive.SearchResult result)
           throws IOException
Writes the supplied search result to the writer.

Specified by:
write in interface org.ldaptive.io.SearchResultWriter
Parameters:
result - search result to write
Throws:
IOException - if an error occurs using the writer


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