About 50 results
Open links in new tab
  1. java - What is object serialization? - Stack Overflow

    Here Java Virtual Machine (JVM) is responsible for its automatic serialization. transient Keyword: java.io.Serializable interface While serializing an object, if we don't want certain data members …

  2. java - What does Serializable mean? - Stack Overflow

    Aug 7, 2010 · To serialize an object means to convert its state to a byte stream so that the byte stream can be reverted back into a copy of the object. A Java object is serializable if its class …

  3. serialization - Serializing an object in Java - Stack Overflow

    Dec 7, 2012 · 1 Serialization of an object in Java means changing the object into some bytes. So, you can save these bytes and read the object by deserialization. Note that, this action is …

  4. java - How to serialize an object into a string - Stack Overflow

    I am able to serialize an object into a file and then restore it again as is shown in the next code snippet. I would like to serialize the object into a string and store into a database instead. Can

  5. java - Jackson enum Serializing and DeSerializer - Stack Overflow

    Aug 2, 2015 · The serializer / deserializer solution pointed out by @xbakesx is an excellent one if you wish to completely decouple your enum class from its JSON representation. Alternatively, …

  6. How to serialize JSON object in java - Stack Overflow

    2 In the case you'd still want Java built-in serialization without having to resort to marshal your JSON object into string notation, one thing you could do is extend JSONObject and …

  7. java - How to serialize Object to JSON? - Stack Overflow

    May 17, 2013 · Java EE 7 has a JSON API in javax.json, see the Javadoc. From what I can tell, it doesn't have a simple method to marshall any object to JSON, you need to construct a …

  8. What is deserialize and serialize in JSON? - Stack Overflow

    Jul 23, 2010 · Serialize and Deserialize In the context of data storage, serialization (or serialisation) is the process of translating data structures or object state into a format that can …

  9. How to write and read java serialized objects into a file

    0 if you serialize the whole list you also have to de-serialize the file into a list when you read it back. This means that you will inevitably load in memory a big file. It can be expensive. If you …

  10. java - How to serialize a lambda? - Stack Overflow

    How can I elegantly serialize a lambda? For example, the code below throws a NotSerializableException. How can I fix it without creating a SerializableRunnable "dummy" …