public class LEAPCodec extends ByteArrayCodec
Codec.CodecException
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
NAME |
UNNAMEDPREFIX
Constructor and Description |
---|
LEAPCodec()
Construct a LEAPCodec object i.e. a Codec for the LEAP language
|
Modifier and Type | Method and Description |
---|---|
AbsContentElement |
decode(byte[] content)
Decodes the content to an abstract descriptor.
|
AbsContentElement |
decode(Ontology ontology,
byte[] content)
Decodes the content to an abstract description.
|
byte[] |
encode(AbsContentElement content)
Encodes an abstract descriptor holding a content element
into a byte array.
|
byte[] |
encode(Ontology ontology,
AbsContentElement content)
Encodes a content into a byte array.
|
getInnerOntology, getName
public static final java.lang.String NAME
public LEAPCodec()
public byte[] encode(AbsContentElement content) throws Codec.CodecException
encode
in class ByteArrayCodec
content
- the content as an abstract descriptor.CodecException
Codec.CodecException
public byte[] encode(Ontology ontology, AbsContentElement content) throws Codec.CodecException
encode
in class ByteArrayCodec
ontology
- the ontologycontent
- the content as an abstract descriptor.CodecException
Codec.CodecException
public AbsContentElement decode(byte[] content) throws Codec.CodecException
decode
in class ByteArrayCodec
content
- the content as a byte array.CodecException
Codec.CodecException
public AbsContentElement decode(Ontology ontology, byte[] content) throws Codec.CodecException
decode
in class ByteArrayCodec
ontology
- the ontology.content
- the content as a byte array.CodecException
Codec.CodecException