hla.rti1516.jlc
Interface DataElement

All Known Subinterfaces:
HLAASCIIchar, HLAASCIIstring, HLAboolean, HLAbyte, HLAfixedRecord, HLAfloat32BE, HLAfloat32LE, HLAfloat64BE, HLAfloat64LE, HLAhandle, HLAinteger16LE, HLAinteger32BE, HLAinteger32LE, HLAinteger64BE, HLAinteger64LE, HLAlogicalTime, HLAoctet, HLAoctetPairBE, HLAoctetPairLE, HLAopaqueData, HLAunicodeChar, HLAunicodeString, HLAvariableArray

public interface DataElement


Method Summary
 void decode(ByteWrapper byteWrapper)
          Decodes this element from the ByteWrapper.
 void encode(ByteWrapper byteWrapper)
          Encodes this element into the specified ByteWrapper.
 int getEncodedLength()
          Returns the size in bytes of this element's encoding.
 int getOctetBoundary()
          Returns the octet boundary of this element.
 byte[] toByteArray()
          Returns a byte array with this element encoded.
 

Method Detail

getOctetBoundary

int getOctetBoundary()
Returns the octet boundary of this element.


encode

void encode(ByteWrapper byteWrapper)
Encodes this element into the specified ByteWrapper.

Parameters:
byteWrapper -

getEncodedLength

int getEncodedLength()
Returns the size in bytes of this element's encoding.

Returns:
size

toByteArray

byte[] toByteArray()
Returns a byte array with this element encoded.

Returns:
byte array with encoded element

decode

void decode(ByteWrapper byteWrapper)
Decodes this element from the ByteWrapper.

Parameters:
byteWrapper -