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.
|
reset
assertResponseRead, didRead, didRead, getStatus, getType, isError, write
protected 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).IOException
IllegalArgumentException
- if could not read the bulk dataRuntimeException
Copyright © 2009–2016. All rights reserved.