public abstract class ByteArrayCodec extends Codec
Codec.CodecException
UNNAMEDPREFIX
Constructor and Description |
---|
ByteArrayCodec(java.lang.String name)
Construct a ByteArrayCodec object with the given name
|
Modifier and Type | Method and Description |
---|---|
abstract AbsContentElement |
decode(byte[] content)
Decodes the content to an abstract description.
|
abstract AbsContentElement |
decode(Ontology ontology,
byte[] content)
Decodes the content to an abstract description.
|
abstract byte[] |
encode(AbsContentElement content)
Encodes a content into a byte array.
|
abstract byte[] |
encode(Ontology ontology,
AbsContentElement content)
Encodes a content into a byte array.
|
getInnerOntology, getName
public ByteArrayCodec(java.lang.String name)
public abstract byte[] encode(AbsContentElement content) throws Codec.CodecException
content
- the content as an abstract descriptor.CodecException
Codec.CodecException
public abstract byte[] encode(Ontology ontology, AbsContentElement content) throws Codec.CodecException
ontology
- the ontologycontent
- the content as an abstract descriptor.CodecException
Codec.CodecException
public abstract AbsContentElement decode(byte[] content) throws Codec.CodecException
content
- the content as a byte array.CodecException
Codec.CodecException
public abstract AbsContentElement decode(Ontology ontology, byte[] content) throws Codec.CodecException
ontology
- the ontology.content
- the content as a byte array.CodecException
Codec.CodecException