public class GZIPCodec
extends java.lang.Object
implements jadex.bridge.service.types.message.ICodec
Modifier and Type | Field and Description |
---|---|
static byte |
CODEC_ID
The gzip codec id.
|
Constructor and Description |
---|
GZIPCodec()
Create a new codec.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
decode(java.lang.Object bytes,
java.lang.ClassLoader classloader,
jadex.commons.transformation.binaryserializer.IErrorReporter rep)
Decode an object.
|
static byte[] |
decodeBytes(byte[] bytes,
java.lang.ClassLoader classloader)
Decode bytes.
|
static byte[] |
decodeBytes(java.io.ByteArrayInputStream bais,
java.lang.ClassLoader classloader)
Decode bytes.
|
java.lang.Object |
encode(java.lang.Object val,
java.lang.ClassLoader classloader,
jadex.bridge.service.types.message.IEncodingContext context)
Encode an object.
|
static byte[] |
encodeBytes(byte[] val,
java.lang.ClassLoader classloader)
Encode an object.
|
byte |
getCodecId()
Get the codec id.
|
public static final byte CODEC_ID
public byte getCodecId()
getCodecId
in interface jadex.bridge.service.types.message.ICodec
public java.lang.Object encode(java.lang.Object val, java.lang.ClassLoader classloader, jadex.bridge.service.types.message.IEncodingContext context)
encode
in interface jadex.bridge.service.types.message.ICodec
obj
- The object.java.io.IOException
public java.lang.Object decode(java.lang.Object bytes, java.lang.ClassLoader classloader, jadex.commons.transformation.binaryserializer.IErrorReporter rep)
decode
in interface jadex.bridge.service.types.message.ICodec
java.io.IOException
public static byte[] encodeBytes(byte[] val, java.lang.ClassLoader classloader)
obj
- The object.java.io.IOException
public static byte[] decodeBytes(byte[] bytes, java.lang.ClassLoader classloader)
java.io.IOException
public static byte[] decodeBytes(java.io.ByteArrayInputStream bais, java.lang.ClassLoader classloader)
java.io.IOException