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 StringIO
IOException
public String read(ExtendedDataInput in) throws IOException
read
in interface StringIO
IOException
protected void writeString(ExtendedDataOutput out, String value) throws IOException
IOException
protected String readString(ExtendedDataInput in) throws IOException
IOException
Copyright (c) 2011-2014 Eike Stepper (Berlin, Germany) and others.