SyntaxFix
Write A Post
Hire A Developer
Questions
If your class extends Serializable, you can write and read objects through a ByteArrayOutputStream, that's what I usually do.
Serializable
ByteArrayOutputStream