public abstract class SyncProtocol.SyncMultiLineResponseBase extends SyncProtocol.SyncResponseBase
Response.Type| Modifier | Constructor and Description |
|---|---|
protected |
SyncMultiLineResponseBase(byte[] buffer,
Command cmd,
Response.Type type) |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
readBulkData(InputStream in,
int length)
Will read up expected bulkdata bytes from the input stream.
|
resetassertResponseRead, didRead, didRead, getStatus, getType, isError, writeprotected SyncMultiLineResponseBase(byte[] buffer,
Command cmd,
Response.Type type)
public final byte[] readBulkData(InputStream in, int length) throws IOException, RuntimeException
in - the stream to read from.length - expected bulk data length (NOT including the trailing CRLF).IOExceptionIllegalArgumentException - if could not read the bulk dataRuntimeExceptionCopyright © 2009–2021. All rights reserved.