Home

Awesome

GitHub GitHub issues Maven Central

Eclipse Serializer

High secure serialization for the JVM and Android

Serialize any object

Eclipse Serializer lets you serialize any object. There are no specific superclasses, interfaces or annotations at all. Even serializing objects from third-party APIs is trouble-free.

Built for complex object graphs

The strength of it is that you can serialize any object graph of any size and complexity. The more complex your object graph is, the faster it will get in comparison.

Optimized byte format

Eclipse Serializer uses a highly optimized byte format. This enables circular references, unlimited size, complexity, and depth of your object graphs, and minimizes overhead.

Converter

The byte format can be converted into CSV and other encoding formats.

Versioning

Classes evolve over time. Therefore, Eclipse Serializer provides a legacy type mapping that lets you manage different versions of your classes.

Usage

<dependency>
  <groupId>org.eclipse.serializer</groupId>
  <artifactId>serializer</artifactId>
  <version>2.0.0</version>
</dependency>
// create a company object
Company company = new Company();
company.setName("Acme Inc.");
// create a serializer which handles byte arrays
Serializer<byte[]> serializer = Serializer.Bytes();

// serialize a company
byte[] data = serializer.serialize(company);

// deserialize the data back to a company
company = serializer.deserialize(data);

if(company.getName().equals("Acme Inc.")) {
    System.out.println("It works!");
}

Applications

Eclipse Serializer is used in EclipseStore.

Contribute

If you want to contribute to this project, please read our guidelines.

Links