@FunctionalInterface public interface ResponseWriter
Modifier and Type | Method and Description |
---|---|
void |
write(ApiRequest request,
ResponseData responseData,
OutputStream os)
Serializes the ResultSet (pulled from the ResponseData) and any desired metadata and adds it to the specified
output stream.
|
void write(ApiRequest request, ResponseData responseData, OutputStream os) throws IOException
request
- ApiRequest object with all the associated info in itresponseData
- Data object containing all the result informationos
- OutputStreamIOException
- if a problem is encountered writing to the OutputStreamCopyright © 2016–2018 Yahoo! Inc.. All rights reserved.