Go with http://code.google.com/p/plist/
<dependency>
<groupId>com.googlecode.plist</groupId>
<artifactId>dd-plist</artifactId>
<version>1.3</version> <!-- corresponds to r103 -->
</dependency>
on http://code.google.com/p/plist/wiki/Examples
You can feed the
PropertyListParser
with aFile
, anInputStreams
or a byte array. The parse method of the PropertyListParser will parse the input and give you a NSObject as result. Generally this is a NSDictionary but it can also be a NSArray.
is has converter toJavaObject()
Object com.dd.plist.NSObject.toJavaObject()
Converts this NSObject into an equivalent object of the Java Runtime Environment.
NSArray objects are converted to arrays.
NSDictionary objects are converted to objects extending the java.util.Map class.
NSSet objects are converted to objects extending the java.util.Set class.
NSNumber objects are converted to primitive number values (int, long, double or boolean).
NSString objects are converted to String objects.
NSData objects are converted to byte arrays.
NSDate objects are converted to java.util.Date objects.
UID objects are converted to byte arrays.
Returns:
A native java object representing this NSObject's value.