Class LanguageDescriptor


  • public class LanguageDescriptor
    extends Descriptor
    The Class LanguageDescriptor. The language descriptor is used to specify the language of the associated program element
    • Constructor Detail

      • LanguageDescriptor

        public LanguageDescriptor()
        Instantiates a new language descriptor.
      • LanguageDescriptor

        public LanguageDescriptor​(java.nio.ByteBuffer descriptorData)
        Instantiates a new language descriptor.
        Parameters:
        descriptorData - the descriptor data
    • Method Detail

      • decodeDescriptorData

        public void decodeDescriptorData​(java.nio.ByteBuffer descriptorData)
        Description copied from class: Descriptor
        Decode descriptor data.
        Overrides:
        decodeDescriptorData in class Descriptor
        Parameters:
        descriptorData - the descriptor data
      • toBin

        public void toBin​(java.nio.ByteBuffer buffer)
        Encodes the Language descriptor into binary form for use in transport
        Overrides:
        toBin in class Descriptor
        Parameters:
        buffer - ByteBuffer to put the binary data
      • binarySize

        public int binarySize()
        How big is the language descriptor in binary.
        Overrides:
        binarySize in class Descriptor
        Returns:
        the total size of the language descriptor in binary form, includes tag and length fields