
public class StringCompressor extends Object implements StringIO
| Modifier and Type | Class and Description |
|---|---|
static class |
StringCompressor.Counting |
| Modifier and Type | Field and Description |
|---|---|
static boolean |
BYPASS |
| Constructor and Description |
|---|
StringCompressor(boolean client)
Creates a StringCompressor instance.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
isClient() |
String |
read(ExtendedDataInput in) |
protected String |
readString(ExtendedDataInput in) |
String |
toString() |
void |
write(ExtendedDataOutput out,
String string) |
protected void |
writeString(ExtendedDataOutput out,
String value) |
public StringCompressor(boolean client)
client - Must be different on both sides of the stream.public boolean isClient()
public void write(ExtendedDataOutput out, String string) throws IOException
write in interface StringIOIOExceptionpublic String read(ExtendedDataInput in) throws IOException
read in interface StringIOIOExceptionprotected void writeString(ExtendedDataOutput out, String value) throws IOException
IOExceptionprotected String readString(ExtendedDataInput in) throws IOException
IOExceptionCopyright (c) 2011, 2012 Eike Stepper (Berlin, Germany) and others.