class CFPropertyList::CFData

This class contains binary data values

def decoded_value

get base64 decoded value
def decoded_value
  return Base64.decode64(@value)
end

def initialize(value=nil,format=DATA_BASE64)

set value to defined state, either base64 encoded or raw
def initialize(value=nil,format=DATA_BASE64)
  if(format == DATA_RAW) then
    @value = Base64.encode64(value)
  else
    @value = value
  end
end

def to_binary(bplist)

convert to binary
def to_binary(bplist)
  return bplist.data_to_binary(decoded_value())
end

def to_xml

convert to XML
def to_xml
  return LibXML::XML::Node.new('data') << LibXML::XML::Node.new_text(@value)
end