public class SyncProtocol.SyncBulkResponse extends SyncProtocol.SyncMultiLineResponseBase implements BulkResponse
Response.Type
Constructor and Description |
---|
SyncBulkResponse(byte[] buff,
Command cmd) |
Modifier and Type | Method and Description |
---|---|
byte[] |
getBulkData() |
void |
read(InputStream in)
Reads itself from the provided
InputStream |
protected void |
reset(Command cmd) |
readBulkData
reset
assertResponseRead, didRead, didRead, getStatus, getType, isError, write
public SyncBulkResponse(byte[] buff, Command cmd)
protected void reset(Command cmd)
public byte[] getBulkData()
getBulkData
in interface BulkResponse
public void read(InputStream in) throws ClientRuntimeException, ProviderException
Message
InputStream
read
in interface Message
in
- 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
IOException
s.ProviderException
- to indicate operational error not directly related to the stream,
and should be treated as a bug.Copyright © 2009–2016. All rights reserved.