Class VCard.Image

  • Enclosing class:
    VCard

    public static final class VCard.Image
    extends Object
    Represents an image. The image is either defined by a type/binary value pair or it is referenced by an URI.
    • Constructor Detail

      • Image

        public Image​(String type,
                     byte[] value)
        Creates an image with a type and binary value.
        Parameters:
        type - The type, e.g. "image/png"
        value - The binary value.
      • Image

        public Image​(URI uri)
        Creates an image with an URI.
        Parameters:
        uri - The URI.
    • Method Detail

      • getType

        public String getType()
        Gets the mime type of the photo, e.g. image/png.
        Returns:
        The mime type.
      • getValue

        public byte[] getValue()
        Gets the photo as byte array.
        Returns:
        The photo.
      • getUri

        public URI getUri()
        Gets the URI to an external photo.
        Returns:
        The URI.