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
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetPendingAcknowledgements
(long timeout) boolean
isClient()
void
processAcknowledgements
(Collection<Integer> acknowledgements) protected String
toString()
void
write
(ExtendedDataOutput out, String string) void
writeAcknowledgements
(ExtendedDataOutput out, Collection<Integer> acknowledgements) protected void
writeString
(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:
write
in interfaceStringIO
- Throws:
IOException
-
read
- Specified by:
read
in 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
-