jade.content.lang.j
Class JCodec
java.lang.Object
|
+--jade.content.lang.Codec
|
+--jade.content.lang.j.JCodec
- public class JCodec
- extends Codec
- Author:
- Federico Bergenti - Universita` di Parma
- See Also:
- Serialized Form
Field Summary |
static java.lang.String |
NAME
|
Constructor Summary |
JCodec()
Constructor |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
NAME
public static final java.lang.String NAME
JCodec
public JCodec()
- Constructor
decode
public AbsContentElement decode(byte[] content)
throws Codec.CodecException
- Decorer.
- Parameters:
content
- the content to encode.- Returns:
- decoded content.
- Throws:
- CodecException -
encode
public byte[] encode(AbsContentElement content)
throws Codec.CodecException
- Encoder.
- Parameters:
content
- the content to decode.- Returns:
- encoded content.
- Throws:
- CodecException -
encode
public byte[] encode(Ontology ontology,
AbsContentElement content)
throws Codec.CodecException
- Encoder.
- Parameters:
ontology
- the ontology to use for decoding.content
- the content to encode.- Returns:
- encoded content.
- Throws:
- CodecException -
decode
public AbsContentElement decode(Ontology ontology,
byte[] content)
throws Codec.CodecException
- Decoder.
- Parameters:
ontology
- the ontology to use for decoding.content
- the content to decode.- Returns:
- decoded content.
- Throws:
- CodecException -