Package org.ldaptive.io
Class JsonWriter
- java.lang.Object
-
- org.ldaptive.io.JsonWriter
-
- All Implemented Interfaces:
SearchResultWriter
public class JsonWriter extends java.lang.Object implements SearchResultWriter
Writes aSearchResponseas JSON to aWriter.- Author:
- Middleware Services
-
-
Constructor Summary
Constructors Constructor Description JsonWriter(java.io.Writer writer)Creates a new json writer.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidwrite(SearchResponse result)Writes the supplied search result to the writer.
-
-
-
Method Detail
-
write
public void write(SearchResponse result) throws java.io.IOException
Writes the supplied search result to the writer.- Specified by:
writein interfaceSearchResultWriter- Parameters:
result- search result to write- Throws:
java.io.IOException- if an error occurs using the writer
-
-