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) |
readBulkDataresetassertResponseRead, didRead, didRead, getStatus, getType, isError, writepublic SyncBulkResponse(byte[] buff,
Command cmd)
protected void reset(Command cmd)
public byte[] getBulkData()
getBulkData in interface BulkResponsepublic void read(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.Copyright © 2009–2021. All rights reserved.