3breadt / dd-plist

A java library providing support for ASCII, XML and binary property lists.
Other
258 stars 94 forks source link

Add support for POJO annotations #58

Closed petarov closed 4 years ago

petarov commented 4 years ago

This PR adds support for annotations when serializing and deserializing Java classes. I needed this in a project I'm working on that creates/parses Apple Configurator Plist config files.

I did not want to introduce potential breaking changes in the already existing Pojo serialization code, therefore the new functionality I have added is only enforceable when the @PlistOptions annotation is denoted on a Java class.

Here's a short documentation, also included in the README file.

Feedback is welcome. Cheers 🍺

extraSix commented 1 year ago

Hi, it seems that this feature has not been released? @3breadt

3breadt commented 1 year ago

No, it was never included in the official branch. Please use a more appropriate format for de-/serialization of objects, like JSON.

extraSix commented 1 year ago

No, it was never included in the official branch. Please use a more appropriate format for de-/serialization of objects, like JSON.

Thanks. But I have another question: How to convert a plist string into a NSObject or a POJO?

3breadt commented 1 year ago

Sorry @extraSix, but this is not the right place for such questions. Please refer to the example given in the readme and for your specific use case this article on converting a String to an InputStream.

extraSix commented 1 year ago

Sorry @extraSix, but this is not the right place for such questions. Please refer to the example given in the readme and for your specific use case this article on converting a String to an InputStream.

My fault. I got it. Thank you.