processBulkReply(...) now return a byte[] (instead of String).

This commit is contained in:
Yaourt
2010-11-04 09:26:26 +01:00
parent 77590f5b21
commit 69c1c644ea

View File

@@ -7,8 +7,6 @@ import java.io.*;
import java.util.ArrayList;
import java.util.List;
import static redis.clients.util.RedisOutputStream.CHARSET;
public final class Protocol {
public static final int DEFAULT_PORT = 6379;
@@ -94,7 +92,7 @@ public final class Protocol {
return is.readLine();
}
private String processBulkReply(final RedisInputStream is) {
private byte[] processBulkReply(final RedisInputStream is) {
int len = Integer.parseInt(is.readLine());
if (len == -1) {
return null;
@@ -112,7 +110,7 @@ public final class Protocol {
throw new JedisException(e);
}
return new String(read, CHARSET);
return read;
}
private Integer processInteger(final RedisInputStream is) {