Class next.util.PropertyListUtilities

All Packages  Class Hierarchy  This Package  Previous  Next 

Class next.util.PropertyListUtilities


java.lang.Object

   |

   +----next.util.PropertyListUtilities


public class PropertyListUtilities
extends Object
The PropertyListUtilities class provides a collection of utility methods that deal with property lists. One method, propertyListFromString(String) converts string objects containing ASCII encoded property lists to property-list objects. Another method, stringFromPropertyList(Object) does the opposite conversion, and the third propertyListsAreEqual(Object, Object) compares property-list objects. These methods are useful for serializing and deserializing property lists in and out of string objects.
See Also:
KeyValueCoding

Method Index

 o propertyListFromString(String)
Returns a property-list object derived from interpreting the ASCII property-list representation stringRep.
 o propertyListsAreEqual(Object, Object)
Returns TRUE if plist1 and plist2 are the same, FALSE if they are not.
 o stringFromPropertyList(Object)
Returns a string object, which has only characters from the ASCII subset of Unicode.

Methods

 o stringFromPropertyList

  public static String stringFromPropertyList(Object plist)

Returns a string object, which has only characters from the ASCII subset of Unicode. The plist object must be one of the other permitted property-list types: Vector, Hashtable, or byte[].
 o propertyListFromString

  public static Object propertyListFromString(String stringRep)

Returns a property-list object derived from interpreting the ASCII property-list representation stringRep. The string object should encode only one top-level object. The return object is one of Vector, Hashtable, String, or byte[].
Throws: RuntimeException
Throws a RuntimeException if there is an error parsing the property-list representation.
 o propertyListsAreEqual

  public static boolean propertyListsAreEqual(Object plist1,

                                              Object plist2)

Returns TRUE if plist1 and plist2 are the same, FALSE if they are not. The compared objects must be of the same type (else FALSE is always returned). This method performs recursive compare operations on collections such as Vectors and Hastables. If anything is different, the method returns FALSE.


Class Hierarchy  This Package  Previous  Next