Package com.pdfgate
Class PdfGateFileResponseParserCallback
java.lang.Object
com.pdfgate.PdfGateResponseParserCallback<byte[]>
com.pdfgate.PdfGateFileResponseParserCallback
- All Implemented Interfaces:
okhttp3.Callback
Parses file responses into raw bytes.
-
Field Summary
Fields inherited from class com.pdfgate.PdfGateResponseParserCallback
callback -
Constructor Summary
ConstructorsConstructorDescriptionPdfGateFileResponseParserCallback(PdfGateCallback<byte[]> callback) Creates a callback for file responses. -
Method Summary
Modifier and TypeMethodDescriptionbyte[]parseResponse(okhttp3.Response response) Parses the HTTP response into the expected payload type.Methods inherited from class com.pdfgate.PdfGateResponseParserCallback
onFailure, onResponse
-
Constructor Details
-
PdfGateFileResponseParserCallback
Creates a callback for file responses.- Parameters:
callback- callback invoked with parsed bytes.
-
-
Method Details
-
parseResponse
Description copied from class:PdfGateResponseParserCallbackParses the HTTP response into the expected payload type.- Specified by:
parseResponsein classPdfGateResponseParserCallback<byte[]>- Parameters:
response- HTTP response to parse.- Returns:
- the parsed response payload.
- Throws:
IOException- when parsing fails.
-