Can you override the stream writers in scala @serializable objects?
I now understand that scala @serializable objects can be used the same as a Java Serializable object. In a Java Serializable object there are methods you can override to change how the object streams: writeObject(ObjectOutputStream) / readObject(ObjectOutputStream). Can you override or inject methods into a scala @serializable object allowing you to change how the object serializes? Yes, you can use the same methods in Scala as in Java: @throws(classOf[IOException]) private def writeObject(out: ObjectOutputStream): Unit = // ... @throws(classOf[IOException]) private def readObject(in: