Class EscherProperty

    • Method Detail

      • getId

        public short getId()
      • getPropertyNumber

        public short getPropertyNumber()
      • isComplex

        public boolean isComplex()
      • isBlipId

        public boolean isBlipId()
      • getName

        public java.lang.String getName()
      • getPropertySize

        public int getPropertySize()
        Most properties are just 6 bytes in length. Override this if we're dealing with complex properties.
        Returns:
        size of this property (in bytes)
      • serializeSimplePart

        public abstract int serializeSimplePart​(byte[] data,
                                                int pos)
        Escher properties consist of a simple fixed length part and a complex variable length part. The fixed length part is serialized first.
        Parameters:
        data - the buffer to write to
        pos - the starting position
        Returns:
        the length of the part
      • serializeComplexPart

        public abstract int serializeComplexPart​(byte[] data,
                                                 int pos)
        Escher properties consist of a simple fixed length part and a complex variable length part. The fixed length part is serialized first.
        Parameters:
        data - the buffer to write to
        pos - the starting position
        Returns:
        the length of the part
      • toString

        public final java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • toXml

        public final java.lang.String toXml​(java.lang.String tab)
      • getGenericProperties

        public java.util.Map<java.lang.String,​java.util.function.Supplier<?>> getGenericProperties()
        Specified by:
        getGenericProperties in interface GenericRecord