Serialize Only Fields that meet a Custom Criteria with Jackson 1. Overview This tutorial is going to illustrate how we can use Jackson to only serialize a field if it meets a specific, custom criteria. For example, say we only want to serialize an integer value if it’s positive –… Continue Reading jackson-serialize-field-custom-criteria

Introduction To Kryo 1. Overview Kryo is a Java serialization framework with a focus on speed, efficiency, and a user-friendly API. In this article, we’ll explore the key features of the Kryo framework and implement examples to showcase its capabilities. 2. Maven Dependency The first thing we need to do… Continue Reading kryo

A Guide to Mapping With Dozer 1. Overview Dozer is a Java Bean to Java Bean mapper that recursively copies data from one object to another, attribute by attribute. The library not only supports mapping between attribute names of Java Beans, but also automatically converts between types – if they’re… Continue Reading dozer

Creating PDF Files in Java 1. Introduction In this quick article, we’ll focus on creating PDF document from scratch based on popular iText and PdfBox library. 2. Maven Dependencies Let’s take a look at the Maven dependencies, which needs to be included in our project: <dependency> <groupId>com.itextpdf</groupId> <artifactId>itextpdf</artifactId> <version>5.5.10</version> </dependency>… Continue Reading java-pdf-creation

XML Serialization and Deserialization with Jackson 1. Overview In this tutorial, we’re going to look at how to serialize Java objects to XML data using Jackson 2.x and deserialize it back to a POJO. We’ll focus on the basic operation that doesn’t require a lot of complexity or customization. 2.… Continue Reading jackson-xml-serialization-and-deserialization

Spring REST API with Protocol Buffers 1. Overview Protocol Buffers is a language and platform neutral mechanism for serialization and deserialization of structured data, which is proclaimed by Google, its creator, to be much faster, smaller and simpler than other types of payloads, such as XML and JSON. This tutorial… Continue Reading spring-rest-api-with-protocol-buffers