docs » cp.plist
Reads & Writes plist data.
- Functions - API calls offered directly by the extension
- base64ToTable
- binaryFileToTable
- binaryFileToXML
- binaryToTable
- fileToTable
- isBinaryPlist
- xmlFileToTable
| Signature | cp.plist.base64ToTable(base64Data) -> table | nil, errorMessage
|
| -----------------------------------------------------|---------------------------------------------------------------------------------------------------------|
| Type | Function |
| Description | Converts base64 encoded Property List string into a Table. |
| Parameters |
- base64Data - Binary data encoded in base64 as a string
- A table of the plist data
- A error message as string if an error occurs
| Signature | cp.plist.binaryFileToTable(plistFileName) -> table | nil
|
| -----------------------------------------------------|---------------------------------------------------------------------------------------------------------|
| Type | Function |
| Description | Converts the data from a Binary File into a LUA Table. |
| Parameters |
- plistFileName - Path & Filename of the Binary File
- data - A table of plist data, or
nil
if there was a problem. - err - The error message, or
nil
if there were no problems.
| Signature | cp.plist.binaryFileToXML(plistFileName) -> string | nil
|
| -----------------------------------------------------|---------------------------------------------------------------------------------------------------------|
| Type | Function |
| Description | Converts the data from a Binary plist File into XML as a string. |
| Parameters |
- plistFileName - Path & Filename of the Binary File
- data - A string of XML data
- err - The error message, or
nil
if there were no problems.
| Signature | cp.plist.binaryToTable(binaryData) -> table | nil
|
| -----------------------------------------------------|---------------------------------------------------------------------------------------------------------|
| Type | Function |
| Description | Converts Binary Data into a LUA Table. |
| Parameters |
- binaryData - Binary data
- data - A string of XML data
- err - The error message, or
nil
if there were no problems.
| Signature | cp.plist.fileToTable(plistFileName) -> table | nil
|
| -----------------------------------------------------|---------------------------------------------------------------------------------------------------------|
| Type | Function |
| Description | Converts plist data from a binary or XML file into a LUA Table. |
| Parameters |
- plistFileName - Path & Filename of the XML File
- data - A table of plist data, or
nil
if there was a problem. - err - The error message, or
nil
if there were no problems.
Signature | cp.plist.isBinaryPlist(plistList) -> boolean |
---|---|
Type | Function |
Description | Returns true if plistList is a binary plist file otherwise false |
Parameters |
|
Returns |
|
| Signature | cp.plist.xmlFileToTable(plistFileName) -> table | nil
|
| -----------------------------------------------------|---------------------------------------------------------------------------------------------------------|
| Type | Function |
| Description | Converts XML data from a file into a LUA Table. |
| Parameters |
- plistFileName - Path & Filename of the XML File
- data - A table of plist data, or
nil
if there was a problem. - err - The error message, or
nil
if there were no problems.