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, getNamepublic static final java.lang.String NAME
public LEAPCodec()
public byte[] encode(AbsContentElement content) throws Codec.CodecException
encode in class ByteArrayCodeccontent - the content as an abstract descriptor.CodecExceptionCodec.CodecExceptionpublic byte[] encode(Ontology ontology, AbsContentElement content) throws Codec.CodecException
encode in class ByteArrayCodecontology - the ontologycontent - the content as an abstract descriptor.CodecExceptionCodec.CodecExceptionpublic AbsContentElement decode(byte[] content) throws Codec.CodecException
decode in class ByteArrayCodeccontent - the content as a byte array.CodecExceptionCodec.CodecExceptionpublic AbsContentElement decode(Ontology ontology, byte[] content) throws Codec.CodecException
decode in class ByteArrayCodecontology - the ontology.content - the content as a byte array.CodecExceptionCodec.CodecException