Skip to content
This repository has been archived by the owner on Jul 18, 2019. It is now read-only.

simaov/serialization-unsafe

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

serialization-unsafe

Simple and fast plain java object serializer/deserializer.

Supported types:

  • all primitive types and wrappers
  • arrays of primitive types
  • string
  • UUID

###Usage

For example, we have a class we want to serialize

public class TestObj {
  private Integer integer;
  private long l;
  private someString s;
  
  ..... getters and setters
  
}

Get serializer for this class:

SerializerUnsafeI<TestObj> serializerUnsafe = SerializerFactory.getSerializer(TestObj.class);

Use it to serialize/deserialize objects:

byte[] b = serializerUnsafe.serialize(testObj);
TestObj deserialized = serializerUnsafe.deserialize(b);

WARNING!!!

TEST IT BEFORE USE

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages