UTF-8 charset declared in Protocol, added a getBinaryBulkReply() in Connection
This commit is contained in:
@@ -122,8 +122,12 @@ public class Connection {
|
||||
}
|
||||
|
||||
public String getBulkReply() {
|
||||
return new String(getBinaryBulkReply(), Protocol.UTF8);
|
||||
}
|
||||
|
||||
public byte[] getBinaryBulkReply() {
|
||||
pipelinedCommands--;
|
||||
return (String) protocol.read(inputStream);
|
||||
return (byte[]) protocol.read(inputStream);
|
||||
}
|
||||
|
||||
public Integer getIntegerReply() {
|
||||
|
||||
Reference in New Issue
Block a user