org.ldaptive.io
Class JsonWriter
java.lang.Object
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
|
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 |
JsonWriter
public JsonWriter(Writer writer)
- Creates a new json writer.
- Parameters:
writer - to write JSON to
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.