0

I came across this link for setting custom date format while serializing a java object into xml. In my case the class files are present inside a jar that I cannot modify. Is there a way to add a custom serializer without modifying the existing classes? Thanks.

Community
  • 1
  • 1
Punter Vicky
  • 14,140
  • 41
  • 164
  • 279
  • Seems your title does not really match your question. I suggest you edit to clarify either way. – Basil Bourque Oct 03 '16 at 19:26
  • @BasilBourque : Thanks , edited the subject. hope it is better. – Punter Vicky Oct 03 '16 at 19:28
  • It is not possible without specifying `@XmlJavaTypeAdapter`. But if you are using `moxy`, check this [link](http://blog.bdoughan.com/2010/12/extending-jaxb-representing-annotations.html) – ulab Oct 05 '16 at 12:47

0 Answers0