diff options
author | Narayan Kamath <narayan@google.com> | 2015-02-21 10:33:18 +0000 |
---|---|---|
committer | Narayan Kamath <narayan@google.com> | 2015-02-23 10:41:37 +0000 |
commit | 2ca6717e8ccb2e8c06a7020753095d55d8af5028 (patch) | |
tree | 62c56b1278f626bbebebbbf78ef48ed3b6ff9bda /include/ScopedJavaUnicodeString.h | |
parent | 628124ea5f16bba5080b6eaa8d20256991b585b4 (diff) |
Clarify docs for CharsetEncoder#flush.
flush may return CoderResult.MALFORMED if the input was "incomplete",
say for eg. if the last char was one half of a surrogate pair.
Note that encoder subclasses cannot detect this inside encode()
because the overrideable encodeLoop() method isn't told whether it's
at the end of input or not.
This change also introduces a test to demonstrate this behaviour.
bug: 19185235
Change-Id: Ie1170fe1409a1abb883ef6f36ac8589855b3b2ab
Diffstat (limited to 'include/ScopedJavaUnicodeString.h')
0 files changed, 0 insertions, 0 deletions