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

Inner classes inherited from class jade.content.lang.Codec
Codec.CodecException
 
Field Summary
static java.lang.String NAME
           
 
Fields inherited from class jade.content.lang.Codec
UNNAMEDPREFIX
 
Constructor Summary
JCodec()
          Constructor
 
Method Summary
 AbsContentElement decode(byte[] content)
          Decorer.
 AbsContentElement decode(Ontology ontology, byte[] content)
          Decoder.
 byte[] encode(AbsContentElement content)
          Encoder.
 byte[] encode(Ontology ontology, AbsContentElement content)
          Encoder.
 
Methods inherited from class jade.content.lang.Codec
getInnerOntology, getName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NAME

public static final java.lang.String NAME
Constructor Detail

JCodec

public JCodec()
Constructor
Method Detail

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 -