What is Java XSON?

Overview of high-performance Java serialization framework
Sergey Siminskiy's picture
Sergey Siminskiy
11 August

XSON is a Java object serialization and deserialization framework. It supports the serialization of Java objects into byte arrays and deserialization from byte arrays to Java objects. 

XSOM Scheme
XSOM Scheme

Recently, a new version was released. Let's see what's inside!

  1. The new buffer package, the relevant class in this package, provides the allocation of the byte [] in the process of distribution, use, recycling management; further providing serialization speed and reducing the Full GC.
  2. Provides API support with offset content.
  3. Provides XCO object serialization and deserialization support.
  4. Provide support for extended configuration files.

Let's check how to use it with code for some basic stuff.

Add the dependency.

<dependency>
    <groupId>org.xson</groupId>
    <artifactId>xson</artifactId>
    <version>1.0.2</version>
</dependency>

Serialization

User user = new User();
// set...
byte[] data = XSON.encode(user);

Deserialization

// byte[] data
User user = XSON.decode(data);

Serialization and deserialization with offset content

int x = 6;
User user = new User();
// set...
byte[] data = XSON.encode(x, user);
// byte[] data
User user = XSON.decode(x, data);

Learn more about XSON at GitHub or official website

Java 9 Hackday

Videocap of interantional, online Java 9 hackday, held by the JUG
Sergey Siminskiy's picture
Sergey Siminskiy
21 August

vJUG is the first online Java Users Group. It allows for anyone from everywhere in the world to join and discuss all Java related topics. JUG conducts Hackdays on a regular basis.

Some info about the participants:

  • Heather VanCura is the Chair of the Java Community Process (JCP) Program at Oracle, international speaker, leader of Global Adopt-a-JSR program in conjunction with Java User Group leaders, organizer of developer hack days (aka Hackergartens) around the world and Spec Lead of JSR 364, Broadening JCP Membership, through the JCP Program. Heather is passionate about growing Java technology and community building dynamics.
  • Mani Sarkar is a passionate developer mainly in the Java/JVM space, currently living and working in the UK. A member of the London Java Community (LJC), JCP Member, OpenJDK contributor (has been heavily involved with this project in the past), involved in number of developer communities, and F/OSS projects. He sees himself working in the areas of core Java, JVM, JDK, Hotspot, Nashorn and Performance Tuning. Advocate of a number of agile and software craftsmanship practices and a regular at many talks, conferences and hands-on-workshops. Expresses his thoughts often via blog posts, tweets and other forms of social media. He can be found on twitter at @theNeomatrix369.
  • Simon Maple is the Director of Developer Relations at ZeroTurnaround, a Java Champion since 2014, JavaOne Rockstar speaker in 2014, Duke's Choice award winner, Virtual JUG founder and organiser, London Java Community co-leader and RebelLabs author. He is an experienced speaker, having presented at JavaOne, JavaZone, Jfokus, DevoxxUK, DevoxxFR, JavaZone, JMaghreb and many more including many JUG tours. His passion is around user groups and communities. When not traveling, Simon enjoys spending quality time with his family, cooking and eating great food.
  • Pratik Patel is the CTO of Atlanta based TripLingo  and the president of Atlanta Java User’s Group. He has also spoken at various conferences and participates in several local tech groups and startup groups. He’s in the startup world now and hacks Java, iOS, Android, HTML5, CSS3, JavaScript, Rails, and ….. well everything except Perl.