9559e748729ef1deb6400f31d0407543cbff3566 |
|
21-Oct-2010 |
Elliott Hughes <enh@google.com> |
Improve our modified UTF-8 implementation. I was out looking for customers for the new OSMemory peek/poke for byte[]s, and ran into this mess. I also noticed we didn't have any real tests for DataOutputStream. This patch rewrites DataOuputStream and ObjectOutputStream to be simpler and cleaner, pulls modified UTF-8 encoding support out into ModifiedUtf8 where it belongs, and adds a new special ICU-avoiding case for String.getBytes("UTF-16BE"). And adds tests. Bug: 3032515 Change-Id: I618c8b1bda13138feed7710e29aee0f96f2e9b95
|