public interface BinaryContext
| Modifier and Type | Method and Description |
|---|---|
boolean |
beginReadStructure(org.apache.mina.core.buffer.IoBuffer buffer,
boolean allowNull) |
Integer |
beginReadStructureList(org.apache.mina.core.buffer.IoBuffer buffer,
boolean allowNull) |
void |
beginWriteStructure(org.apache.mina.core.buffer.IoBuffer buffer,
byte fieldNumber,
boolean isNull) |
void |
beginWriteStructureList(org.apache.mina.core.buffer.IoBuffer buffer,
byte fieldNumber,
Collection<?> values) |
Boolean |
decodeBoolean(org.apache.mina.core.buffer.IoBuffer buffer) |
List<Boolean> |
decodeBooleanList(org.apache.mina.core.buffer.IoBuffer buffer) |
Set<Boolean> |
decodeBooleanSet(org.apache.mina.core.buffer.IoBuffer buffer) |
Double |
decodeDouble(org.apache.mina.core.buffer.IoBuffer buffer) |
List<Double> |
decodeDoubleList(org.apache.mina.core.buffer.IoBuffer buffer) |
Set<Double> |
decodeDoubleSet(org.apache.mina.core.buffer.IoBuffer buffer) |
<E extends Enum<E>> |
decodeEnum(org.apache.mina.core.buffer.IoBuffer buffer,
Class<E> enumClazz) |
<E extends Enum<E>> |
decodeEnumList(org.apache.mina.core.buffer.IoBuffer buffer,
Class<E> enumClazz) |
<E extends Enum<E>> |
decodeEnumSet(org.apache.mina.core.buffer.IoBuffer buffer,
Class<E> enumClazz) |
Integer |
decodeInt(org.apache.mina.core.buffer.IoBuffer buffer) |
List<Integer> |
decodeIntList(org.apache.mina.core.buffer.IoBuffer buffer) |
Set<Integer> |
decodeIntSet(org.apache.mina.core.buffer.IoBuffer buffer) |
Long |
decodeLong(org.apache.mina.core.buffer.IoBuffer buffer) |
List<Long> |
decodeLongList(org.apache.mina.core.buffer.IoBuffer buffer) |
Set<Long> |
decodeLongSet(org.apache.mina.core.buffer.IoBuffer buffer) |
boolean |
decodePrimitiveBoolean(org.apache.mina.core.buffer.IoBuffer buffer) |
double |
decodePrimitiveDouble(org.apache.mina.core.buffer.IoBuffer buffer) |
int |
decodePrimitiveInt(org.apache.mina.core.buffer.IoBuffer buffer) |
long |
decodePrimitiveLong(org.apache.mina.core.buffer.IoBuffer buffer) |
Map<String,String> |
decodeProperties(org.apache.mina.core.buffer.IoBuffer buffer) |
List<Map<String,String>> |
decodePropertiesList(org.apache.mina.core.buffer.IoBuffer buffer) |
Set<Map<String,String>> |
decodePropertiesSet(org.apache.mina.core.buffer.IoBuffer buffer) |
String |
decodeString(org.apache.mina.core.buffer.IoBuffer buffer) |
List<String> |
decodeStringList(org.apache.mina.core.buffer.IoBuffer buffer) |
Set<String> |
decodeStringSet(org.apache.mina.core.buffer.IoBuffer buffer) |
Variant |
decodeVariant(org.apache.mina.core.buffer.IoBuffer buffer) |
List<Variant> |
decodeVariantList(org.apache.mina.core.buffer.IoBuffer buffer) |
Map<String,Variant> |
decodeVariantMap(org.apache.mina.core.buffer.IoBuffer buffer) |
List<Map<String,Variant>> |
decodeVariantMapList(org.apache.mina.core.buffer.IoBuffer buffer) |
Set<Map<String,Variant>> |
decodeVariantMapSet(org.apache.mina.core.buffer.IoBuffer buffer) |
Set<Variant> |
decodeVariantSet(org.apache.mina.core.buffer.IoBuffer buffer) |
void |
encodeBoolean(org.apache.mina.core.buffer.IoBuffer buffer,
byte fieldNumber,
Boolean data) |
void |
encodeBooleanCollection(org.apache.mina.core.buffer.IoBuffer buffer,
byte fieldNumber,
Collection<Boolean> data) |
void |
encodeDouble(org.apache.mina.core.buffer.IoBuffer buffer,
byte fieldNumber,
Double data) |
void |
encodeDoubleCollection(org.apache.mina.core.buffer.IoBuffer buffer,
byte fieldNumber,
Collection<Double> data) |
<E extends Enum<E>> |
encodeEnum(org.apache.mina.core.buffer.IoBuffer buffer,
byte fieldNumber,
E data) |
<E extends Enum<E>> |
encodeEnumList(org.apache.mina.core.buffer.IoBuffer buffer,
byte fieldNumber,
List<E> data) |
<E extends Enum<E>> |
encodeEnumSet(org.apache.mina.core.buffer.IoBuffer buffer,
byte fieldNumber,
Set<E> data) |
void |
encodeInt(org.apache.mina.core.buffer.IoBuffer buffer,
byte fieldNumber,
Integer data) |
void |
encodeIntCollection(org.apache.mina.core.buffer.IoBuffer buffer,
byte fieldNumber,
Collection<Integer> data) |
void |
encodeLong(org.apache.mina.core.buffer.IoBuffer buffer,
byte fieldNumber,
Long data) |
void |
encodeLongCollection(org.apache.mina.core.buffer.IoBuffer buffer,
byte fieldNumber,
Collection<Long> data) |
void |
encodePrimitiveBoolean(org.apache.mina.core.buffer.IoBuffer buffer,
byte fieldNumber,
boolean data) |
void |
encodePrimitiveDouble(org.apache.mina.core.buffer.IoBuffer buffer,
byte fieldNumber,
double data) |
void |
encodePrimitiveInt(org.apache.mina.core.buffer.IoBuffer buffer,
byte fieldNumber,
int data) |
void |
encodePrimitiveLong(org.apache.mina.core.buffer.IoBuffer buffer,
byte fieldNumber,
long data) |
void |
encodeProperties(org.apache.mina.core.buffer.IoBuffer buffer,
byte fieldNumber,
Map<String,String> data) |
void |
encodePropertiesCollection(org.apache.mina.core.buffer.IoBuffer buffer,
byte fieldNumber,
Collection<Map<String,String>> data) |
void |
encodeString(org.apache.mina.core.buffer.IoBuffer buffer,
byte fieldNumber,
String data) |
void |
encodeStringCollection(org.apache.mina.core.buffer.IoBuffer buffer,
byte fieldNumber,
Collection<String> data) |
void |
encodeVariant(org.apache.mina.core.buffer.IoBuffer buffer,
byte fieldNumber,
Variant data) |
void |
encodeVariantCollection(org.apache.mina.core.buffer.IoBuffer buffer,
byte fieldNumber,
Collection<Variant> data) |
void |
encodeVariantMap(org.apache.mina.core.buffer.IoBuffer buffer,
byte fieldNumber,
Map<String,Variant> data) |
void |
encodeVariantMapCollection(org.apache.mina.core.buffer.IoBuffer buffer,
byte fieldNumber,
Collection<Map<String,Variant>> data) |
String |
getProtocolIdPart() |
String getProtocolIdPart()
void encodeString(org.apache.mina.core.buffer.IoBuffer buffer,
byte fieldNumber,
String data)
throws Exception
ExceptionString decodeString(org.apache.mina.core.buffer.IoBuffer buffer) throws Exception
Exceptionvoid encodeStringCollection(org.apache.mina.core.buffer.IoBuffer buffer,
byte fieldNumber,
Collection<String> data)
throws Exception
ExceptionList<String> decodeStringList(org.apache.mina.core.buffer.IoBuffer buffer) throws Exception
ExceptionSet<String> decodeStringSet(org.apache.mina.core.buffer.IoBuffer buffer) throws Exception
Exceptionvoid encodeInt(org.apache.mina.core.buffer.IoBuffer buffer,
byte fieldNumber,
Integer data)
throws Exception
ExceptionInteger decodeInt(org.apache.mina.core.buffer.IoBuffer buffer) throws Exception
Exceptionvoid encodePrimitiveInt(org.apache.mina.core.buffer.IoBuffer buffer,
byte fieldNumber,
int data)
throws Exception
Exceptionint decodePrimitiveInt(org.apache.mina.core.buffer.IoBuffer buffer)
throws Exception
Exceptionvoid encodeIntCollection(org.apache.mina.core.buffer.IoBuffer buffer,
byte fieldNumber,
Collection<Integer> data)
throws Exception
ExceptionList<Integer> decodeIntList(org.apache.mina.core.buffer.IoBuffer buffer) throws Exception
ExceptionSet<Integer> decodeIntSet(org.apache.mina.core.buffer.IoBuffer buffer) throws Exception
Exceptionvoid encodeLong(org.apache.mina.core.buffer.IoBuffer buffer,
byte fieldNumber,
Long data)
throws Exception
ExceptionLong decodeLong(org.apache.mina.core.buffer.IoBuffer buffer) throws Exception
Exceptionvoid encodePrimitiveLong(org.apache.mina.core.buffer.IoBuffer buffer,
byte fieldNumber,
long data)
throws Exception
Exceptionlong decodePrimitiveLong(org.apache.mina.core.buffer.IoBuffer buffer)
throws Exception
Exceptionvoid encodeLongCollection(org.apache.mina.core.buffer.IoBuffer buffer,
byte fieldNumber,
Collection<Long> data)
throws Exception
ExceptionList<Long> decodeLongList(org.apache.mina.core.buffer.IoBuffer buffer) throws Exception
ExceptionSet<Long> decodeLongSet(org.apache.mina.core.buffer.IoBuffer buffer) throws Exception
Exceptionvoid encodeBoolean(org.apache.mina.core.buffer.IoBuffer buffer,
byte fieldNumber,
Boolean data)
throws Exception
ExceptionBoolean decodeBoolean(org.apache.mina.core.buffer.IoBuffer buffer) throws Exception
Exceptionvoid encodePrimitiveBoolean(org.apache.mina.core.buffer.IoBuffer buffer,
byte fieldNumber,
boolean data)
throws Exception
Exceptionboolean decodePrimitiveBoolean(org.apache.mina.core.buffer.IoBuffer buffer)
throws Exception
Exceptionvoid encodeBooleanCollection(org.apache.mina.core.buffer.IoBuffer buffer,
byte fieldNumber,
Collection<Boolean> data)
throws Exception
ExceptionList<Boolean> decodeBooleanList(org.apache.mina.core.buffer.IoBuffer buffer) throws Exception
ExceptionSet<Boolean> decodeBooleanSet(org.apache.mina.core.buffer.IoBuffer buffer) throws Exception
Exceptionvoid encodeDouble(org.apache.mina.core.buffer.IoBuffer buffer,
byte fieldNumber,
Double data)
throws Exception
ExceptionDouble decodeDouble(org.apache.mina.core.buffer.IoBuffer buffer) throws Exception
Exceptionvoid encodePrimitiveDouble(org.apache.mina.core.buffer.IoBuffer buffer,
byte fieldNumber,
double data)
throws Exception
Exceptiondouble decodePrimitiveDouble(org.apache.mina.core.buffer.IoBuffer buffer)
throws Exception
Exceptionvoid encodeDoubleCollection(org.apache.mina.core.buffer.IoBuffer buffer,
byte fieldNumber,
Collection<Double> data)
throws Exception
ExceptionList<Double> decodeDoubleList(org.apache.mina.core.buffer.IoBuffer buffer) throws Exception
ExceptionSet<Double> decodeDoubleSet(org.apache.mina.core.buffer.IoBuffer buffer) throws Exception
Exceptionvoid encodeVariant(org.apache.mina.core.buffer.IoBuffer buffer,
byte fieldNumber,
Variant data)
throws Exception
ExceptionVariant decodeVariant(org.apache.mina.core.buffer.IoBuffer buffer) throws Exception
Exceptionvoid encodeVariantCollection(org.apache.mina.core.buffer.IoBuffer buffer,
byte fieldNumber,
Collection<Variant> data)
throws Exception
ExceptionList<Variant> decodeVariantList(org.apache.mina.core.buffer.IoBuffer buffer) throws Exception
ExceptionSet<Variant> decodeVariantSet(org.apache.mina.core.buffer.IoBuffer buffer) throws Exception
Exceptionvoid encodeVariantMap(org.apache.mina.core.buffer.IoBuffer buffer,
byte fieldNumber,
Map<String,Variant> data)
throws Exception
ExceptionMap<String,Variant> decodeVariantMap(org.apache.mina.core.buffer.IoBuffer buffer) throws Exception
Exceptionvoid encodeVariantMapCollection(org.apache.mina.core.buffer.IoBuffer buffer,
byte fieldNumber,
Collection<Map<String,Variant>> data)
throws Exception
ExceptionList<Map<String,Variant>> decodeVariantMapList(org.apache.mina.core.buffer.IoBuffer buffer) throws Exception
ExceptionSet<Map<String,Variant>> decodeVariantMapSet(org.apache.mina.core.buffer.IoBuffer buffer) throws Exception
Exceptionvoid encodeProperties(org.apache.mina.core.buffer.IoBuffer buffer,
byte fieldNumber,
Map<String,String> data)
throws Exception
ExceptionMap<String,String> decodeProperties(org.apache.mina.core.buffer.IoBuffer buffer) throws Exception
Exceptionvoid encodePropertiesCollection(org.apache.mina.core.buffer.IoBuffer buffer,
byte fieldNumber,
Collection<Map<String,String>> data)
throws Exception
ExceptionList<Map<String,String>> decodePropertiesList(org.apache.mina.core.buffer.IoBuffer buffer) throws Exception
ExceptionSet<Map<String,String>> decodePropertiesSet(org.apache.mina.core.buffer.IoBuffer buffer) throws Exception
Exception<E extends Enum<E>> void encodeEnum(org.apache.mina.core.buffer.IoBuffer buffer, byte fieldNumber, E data) throws Exception
Exception<E extends Enum<E>> E decodeEnum(org.apache.mina.core.buffer.IoBuffer buffer, Class<E> enumClazz) throws Exception
Exception<E extends Enum<E>> void encodeEnumSet(org.apache.mina.core.buffer.IoBuffer buffer, byte fieldNumber, Set<E> data) throws Exception
Exception<E extends Enum<E>> void encodeEnumList(org.apache.mina.core.buffer.IoBuffer buffer, byte fieldNumber, List<E> data) throws Exception
Exception<E extends Enum<E>> List<E> decodeEnumList(org.apache.mina.core.buffer.IoBuffer buffer, Class<E> enumClazz) throws Exception
Exception<E extends Enum<E>> Set<E> decodeEnumSet(org.apache.mina.core.buffer.IoBuffer buffer, Class<E> enumClazz) throws Exception
Exceptionvoid beginWriteStructure(org.apache.mina.core.buffer.IoBuffer buffer,
byte fieldNumber,
boolean isNull)
throws Exception
Exceptionboolean beginReadStructure(org.apache.mina.core.buffer.IoBuffer buffer,
boolean allowNull)
throws Exception
Exceptionvoid beginWriteStructureList(org.apache.mina.core.buffer.IoBuffer buffer,
byte fieldNumber,
Collection<?> values)
throws Exception
Exception