Questions tagged [java-custom-serialization]

Customize the Default Protocol - Serialization

This is interesting feature of Java Serialization which allow a developer to customize the serialization process in Serializable class.

Reference Article : Discover the secrets of the Java Serialization API

19 questions
0
votes
1 answer

simulating java object externalization via custom serialization

The main benefit of externalization over serialization is that externalization persists only part of the object, not the whole object as in case of serialization. But i think that we can simulate externalization via custom serialization if we will…
Suren Aznauryan
  • 984
  • 10
  • 24
0
votes
1 answer

How to serialise a POJO with two different custom serialisers for two different apis in Spring MVC?

I am using Spring MVC for creating a restful API. I have two different API endpoints where I need to serialise same POJO in two different ways. I have illustrated the same below: Course API url - /course/{id} response - { "id": "c1234", …
mickeymoon
  • 4,820
  • 5
  • 31
  • 56
0
votes
1 answer

Using Kryo to Serialize Classes with Non Serializable Attributes

I am using Kryo Serializer for Serializing my Java Object My Java Object is like this Class A { private Class B; private Class C; private Class D; int x ; int y; } B, C and D are third party libraries and not serializable . Also I cant edit their…
0
votes
1 answer

How to implement Jackson custom serialization outside a domain bean?

I have a Spring managed bean... @Component("Foobean") @Scope("prototype") public class foobean { private String bar1; private String bar2; public String getBar1() { return bar1; } public void setBar1(String bar1) { …
David Neuschulz
  • 959
  • 1
  • 8
  • 14
1
2