public abstract class SyncProtocol.SyncMultiLineResponseBase extends SyncProtocol.SyncResponseBase
Response.Typebuffer, offset| Modifier | Constructor and Description |
|---|---|
protected |
SyncMultiLineResponseBase(byte[] buffer,
Command cmd,
Response.Type type) |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
readBulkData(java.io.InputStream in,
int length)
Will read up expected bulkdata bytes from the input stream.
|
(package private) int |
readControlLine(java.io.InputStream in,
boolean checkForError,
byte ctlByte) |
(package private) void |
seekToCRLF(java.io.InputStream in) |
readSingleLineResponse, resetassertResponseRead, didRead, didRead, getStatus, getType, isError, writeprotected SyncMultiLineResponseBase(byte[] buffer,
Command cmd,
Response.Type type)
void seekToCRLF(java.io.InputStream in)
in - int readControlLine(java.io.InputStream in,
boolean checkForError,
byte ctlByte)
in - checkForError - ctlByte - public final byte[] readBulkData(java.io.InputStream in,
int length)
throws java.io.IOException,
java.lang.RuntimeException
in - the stream to read from.length - expected bulk data length (NOT including the trailing CRLF).java.io.IOExceptionjava.lang.IllegalArgumentException - if could not read the bulk datajava.lang.RuntimeException