public class SyncProtocol.SyncBulkResponse extends SyncProtocol.SyncMultiLineResponseBase implements BulkResponse
Response.Type| Modifier and Type | Field and Description |
|---|---|
(package private) byte[] |
data |
buffer, offset| Modifier | Constructor and Description |
|---|---|
|
SyncBulkResponse(byte[] buff,
Command cmd) |
private |
SyncBulkResponse(Command cmd)
Uses the sharedResponseBuffer for reading of the response control line.
|
| Modifier and Type | Method and Description |
|---|---|
byte[] |
getBulkData() |
void |
read(java.io.InputStream in)
Reads itself from the provided
InputStream |
protected void |
reset(Command cmd) |
readBulkData, readControlLine, seekToCRLFreadSingleLineResponse, resetassertResponseRead, didRead, didRead, getStatus, getType, isError, writeprivate SyncBulkResponse(Command cmd)
cmd - public SyncBulkResponse(byte[] buff,
Command cmd)
protected void reset(Command cmd)
public byte[] getBulkData()
getBulkData in interface BulkResponsepublic void read(java.io.InputStream in)
throws ClientRuntimeException,
ProviderException
MessageInputStreamread in interface Messagein - the steam to read from.ClientRuntimeException - to indicate a system error, potentially network related
and hopefully recoverable. Typically used to wrap and propagate the IO stream's thrown
IOExceptions.ProviderException - to indicate operational error not directly related to the stream,
and should be treated as a bug.