Hi, On Mon, Feb 19, 2018 at 10:55 PM, Chuck Davis <cjgun...@gmail.com> wrote: >> Note also that your requirement is to use blocking, stream-based, >> byte[]-based APIs. >> If you had chosen a data format for which a non-blocking parser based >> on ByteBuffer APIs existed, you would be so happy about the JDK 9 >> APIs. > > Like what for instance? I'm looking for suggestions/strategies how best to > adapt to the future. It's very unlikely I'm going to convert all my data to > text before sending across the wire.
Starting point: https://en.wikipedia.org/wiki/Comparison_of_data_serialization_formats CBOR looks promising and it's a standard. If you don't need references, then many other choices. I don't know the status of the libraries around CBOR though, so yes, I understand the appeal of Java Serialization. As I said, a JDK bridge between ByteBuffer and [Input|Output]Stream will solve a million cases. -- Simone Bordet --- Finally, no matter how good the architecture and design are, to deliver bug-free software with optimal performance and reliability, the implementation technique must be flawless. Victoria Livschitz