| Constructor and Description |
|---|
VCard.Image(String type,
byte[] value)
Creates an image with a type and binary value.
|
VCard.Image(URI uri)
Creates an image with an URI.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getType()
Gets the mime type of the photo, e.g. image/png.
|
URI |
getUri()
Gets the URI to an external photo.
|
byte[] |
getValue()
Gets the photo as byte array.
|
void |
setType(String type)
Sets the mime type of the photo, e.g. image/png.
|
void |
setUri(URI uri)
Sets an URI to an external photo.
|
void |
setValue(byte[] value)
Sets the photo as byte array.
|
public VCard.Image(String type, byte[] value)
type - The type, e.g. "image/png"value - The binary value.public VCard.Image(URI uri)
uri - The URI.public String getType()
setType(String)public void setType(String type)
type - The mime type.getType()public byte[] getValue()
setValue(byte[])public void setValue(byte[] value)
value - The photo.getValue()public URI getUri()
public void setUri(URI uri)
uri - The URI.Copyright © 2014–2015 XMPP.rocks. All rights reserved.