public final class RedisOutputStream extends FilterOutputStream
Modifier and Type | Field and Description |
---|---|
protected byte[] |
buf |
protected int |
count |
out
Constructor and Description |
---|
RedisOutputStream(OutputStream out) |
RedisOutputStream(OutputStream out,
int size) |
Modifier and Type | Method and Description |
---|---|
void |
flush() |
static boolean |
isSurrogate(char ch) |
static int |
utf8Length(String str) |
void |
write(byte b) |
void |
write(byte[] b) |
void |
write(byte[] b,
int off,
int len) |
void |
writeAsciiCrLf(String in) |
void |
writeCrLf() |
void |
writeIntCrLf(int value) |
void |
writeUtf8CrLf(String str) |
close, write
public RedisOutputStream(OutputStream out)
public RedisOutputStream(OutputStream out, int size)
public void write(byte b) throws IOException
IOException
public void write(byte[] b) throws IOException
write
in class FilterOutputStream
IOException
public void write(byte[] b, int off, int len) throws IOException
write
in class FilterOutputStream
IOException
public void writeAsciiCrLf(String in) throws IOException
IOException
public static boolean isSurrogate(char ch)
public static int utf8Length(String str)
public void writeCrLf() throws IOException
IOException
public void writeUtf8CrLf(String str) throws IOException
IOException
public void writeIntCrLf(int value) throws IOException
IOException
public void flush() throws IOException
flush
in interface Flushable
flush
in class FilterOutputStream
IOException
Copyright © 2013. All rights reserved.