public static final class VCard.Image
extends java.lang.Object
Represents an image. The image is either defined by a type/binary value pair or it is referenced by an URI.
Constructor and Description |
---|
Image(java.lang.String type,
byte[] value)
Creates an image with a type and binary value.
|
Image(java.net.URI uri)
Creates an image with an URI.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getType()
Gets the mime type of the photo, e.g. image/png.
|
java.net.URI |
getUri()
Gets the URI to an external photo.
|
byte[] |
getValue()
Gets the photo as byte array.
|
public Image(java.lang.String type, byte[] value)
Creates an image with a type and binary value.
type
- The type, e.g. “image/png”value
- The binary value.public Image(java.net.URI uri)
Creates an image with an URI.
uri
- The URI.public java.lang.String getType()
Gets the mime type of the photo, e.g. image/png.
public byte[] getValue()
Gets the photo as byte array.
public java.net.URI getUri()
Gets the URI to an external photo.
Copyright © 2014–2019 XMPP.rocks. All rights reserved.