Class AvatarMetadata.Info

  • Enclosing class:
    AvatarMetadata

    public static final class AvatarMetadata.Info
    extends Object
    The implementation of the <info/> element in the urn:xmpp:avatar:metadata namespace.

    This class is immutable.

    • Method Detail

      • getBytes

        public final long getBytes()
        Gets the size of the image data in bytes.
        Returns:
        The bytes.
      • getId

        public final String getId()
        Gets a hash of the image data for the specified content-type, where the hash is produced in accordance with the SHA-1 algorithm as specified in RFC 3174 [11] (with binary output).
        Returns:
        The id.
      • getType

        public final String getType()
        Gets the IANA-registered content type of the image data.
        Returns:
        The type.
      • getUrl

        public final URL getUrl()
        Gets the http: or https: URL at which the image data file is hosted; this attribute MUST NOT be included unless the image data file can be retrieved via HTTP.
        Returns:
        The URL.
      • getWidth

        public final Integer getWidth()
        Gets the width of the image in pixels.
        Returns:
        The width.
      • getHeight

        public final Integer getHeight()
        Gets the height of the image in pixels.
        Returns:
        The height.