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 aSearchResponse
as 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 void
write(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:
write
in interfaceSearchResultWriter
- Parameters:
result
- search result to write- Throws:
java.io.IOException
- if an error occurs using the writer
-
-