Saturday Jan 11, 2014

YouTube: XML Encoding on the NetBeans Platform

The XMLEncoder class is a complementary alternative to the ObjectOutputStream and can used to generate a textual representation of a JavaBean in the same way that the ObjectOutputStream can be used to create binary representation of Serializable objects.

I know the above because I read (and copied it from) the related javadoc, for java.beans.XMLEncoder. The NetBeans Platform has a cool solution built on top of XMLEncoder/Decoder, via the @ConvertAsJavaBean annotation.

I blogged about this, some time ago, with example code, here.

Today I made a small sample that puts together several standard NetBeans Platform pieces, with the result viewable in this (silent, i.e., intentionally no voice, so please don't leave comments about no audio, etc) new YouTube clip:

The source code of the above is here:

https://java.net/projects/nb-api-samples/sources/api-samples/show/versions/7.4/misc/Diary

About

Geertjan Wielenga (@geertjanw) is a Principal Product Manager in the Oracle Developer Tools group living & working in Amsterdam. He is a Java technology enthusiast, evangelist, trainer, speaker, and writer. He blogs here daily.

The focus of this blog is mostly on NetBeans (a development tool primarily for Java programmers), with an occasional reference to NetBeans, and sometimes diverging to topics relating to NetBeans. And then there are days when NetBeans is mentioned, just for a change.

Search

Archives
« January 2014 »
SunMonTueWedThuFriSat
   
26
 
       
Today