Package org.eclipse.net4j.util.io
Class StringCompressor
java.lang.Object
org.eclipse.net4j.util.io.StringCompressor
- All Implemented Interfaces:
StringIO
- Direct Known Subclasses:
StringCompressor.Counting
- Since:
- 2.0
- Author:
- Eike Stepper
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetPendingAcknowledgements(long timeout) booleanisClient()voidprocessAcknowledgements(Collection<Integer> acknowledgements) protected StringtoString()voidwrite(ExtendedDataOutput out, String string) voidwriteAcknowledgements(ExtendedDataOutput out, Collection<Integer> acknowledgements) protected voidwriteString(ExtendedDataOutput out, String value)
-
Field Details
-
BYPASS
public static boolean BYPASS- Since:
- 3.0
-
-
Constructor Details
-
StringCompressor
public StringCompressor(boolean client) Creates a StringCompressor instance.- Parameters:
client- Must be different on both sides of the stream.
-
-
Method Details
-
isClient
public boolean isClient() -
write
- Specified by:
writein interfaceStringIO- Throws:
IOException
-
read
- Specified by:
readin interfaceStringIO- Throws:
IOException
-
getPendingAcknowledgements
- Since:
- 3.8
-
writeAcknowledgements
public void writeAcknowledgements(ExtendedDataOutput out, Collection<Integer> acknowledgements) throws IOException - Throws:
IOException- Since:
- 3.8
-
readAcknowledgements
- Throws:
IOException- Since:
- 3.8
-
processAcknowledgements
- Since:
- 3.8
-
toString
-
writeString
- Throws:
IOException- Since:
- 3.0
-
readString
- Throws:
IOException- Since:
- 3.0
-