public static final class AvatarMetadata.Info
extends java.lang.Object
The implementation of the <info/>
element in the urn:xmpp:avatar:metadata
namespace.
This class is immutable.
Constructor and Description |
---|
Info(java.lang.Integer bytes,
java.lang.String id,
java.lang.String type) |
Info(java.lang.Integer bytes,
java.lang.String id,
java.lang.String type,
java.lang.Integer width,
java.lang.Integer height,
java.net.URL url) |
Modifier and Type | Method and Description |
---|---|
java.lang.Integer |
getBytes()
Gets the size of the image data in bytes.
|
java.lang.Integer |
getHeight()
Gets the height of the image in pixels.
|
java.lang.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).
|
java.lang.String |
getType()
Gets the IANA-registered content type of the image data.
|
java.net.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.
|
java.lang.Integer |
getWidth()
Gets the width of the image in pixels.
|
public Info(java.lang.Integer bytes, java.lang.String id, java.lang.String type)
public Info(java.lang.Integer bytes, java.lang.String id, java.lang.String type, java.lang.Integer width, java.lang.Integer height, java.net.URL url)
public final java.lang.Integer getBytes()
Gets the size of the image data in bytes.
public final java.lang.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).
public final java.lang.String getType()
Gets the IANA-registered content type of the image data.
public final java.net.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.
public final java.lang.Integer getWidth()
Gets the width of the image in pixels.
public final java.lang.Integer getHeight()
Gets the height of the image in pixels.
Copyright © 2014–2019 XMPP.rocks. All rights reserved.