ICAL. Binary

Represents the BINARY value type, which contains extra methods for encoding and decoding.

Constructor

new Binary(aValue)

Creates a new ICAL.Binary instance

Parameters:
NameTypeDescription
aValueString

The binary data for this value

Members

(constant) icaltype

The type name, to be used in the jCal object.

Default Value
  • "binary"

Methods

decodeValue() → {String}

Base64 decode the current value

Returns:

The base64-decoded value

Type: 
String

setEncodedValue(aValue)

Encodes the passed parameter with base64 and sets the internal value to the result.

Parameters:
NameTypeDescription
aValueString

The raw binary value to encode

toString() → {String}

The string representation of this value

Returns:
Type: 
String

(static) fromString(aString) → {ICAL.Binary}

Creates a binary value from the given string.

Parameters:
NameTypeDescription
aStringString

The binary value string

Returns:

The binary value instance

Type: 
ICAL.Binary