public class StringCompressor extends java.lang.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 |
---|---|
java.util.Collection<java.lang.Integer> |
getPendingAcknowledgements(long timeout) |
boolean |
isClient() |
void |
processAcknowledgements(java.util.Collection<java.lang.Integer> acknowledgements) |
java.lang.String |
read(ExtendedDataInput in) |
java.util.Collection<java.lang.Integer> |
readAcknowledgements(ExtendedDataInput in) |
protected java.lang.String |
readString(ExtendedDataInput in) |
java.lang.String |
toString() |
void |
write(ExtendedDataOutput out,
java.lang.String string) |
void |
writeAcknowledgements(ExtendedDataOutput out,
java.util.Collection<java.lang.Integer> acknowledgements) |
protected void |
writeString(ExtendedDataOutput out,
java.lang.String value) |
public StringCompressor(boolean client)
client
- Must be different on both sides of the stream.public boolean isClient()
public void write(ExtendedDataOutput out, java.lang.String string) throws java.io.IOException
public java.lang.String read(ExtendedDataInput in) throws java.io.IOException
public java.util.Collection<java.lang.Integer> getPendingAcknowledgements(long timeout)
public void writeAcknowledgements(ExtendedDataOutput out, java.util.Collection<java.lang.Integer> acknowledgements) throws java.io.IOException
java.io.IOException
public java.util.Collection<java.lang.Integer> readAcknowledgements(ExtendedDataInput in) throws java.io.IOException
java.io.IOException
public void processAcknowledgements(java.util.Collection<java.lang.Integer> acknowledgements)
public java.lang.String toString()
toString
in class java.lang.Object
protected void writeString(ExtendedDataOutput out, java.lang.String value) throws java.io.IOException
java.io.IOException
protected java.lang.String readString(ExtendedDataInput in) throws java.io.IOException
java.io.IOException
Copyright (c) 2004-2019 Eike Stepper (Loehne, Germany) and others.
All rights reserved. This program and the accompanying materials are made available under the terms of the Eclipse Public License v1.0 which accompanies this distribution, and is available at http://www.eclipse.org/legal/epl-v10.html