mirror of
https://github.com/openjdk/jdk.git
synced 2026-03-06 14:10:36 +00:00
Add a note about malformed-input and unmappable-character sequences
This commit is contained in:
parent
fd989e87da
commit
08929964be
@ -2106,6 +2106,9 @@ public final class String
|
||||
/**
|
||||
* {@return the length in bytes of the given String encoded with the given {@link Charset}}
|
||||
*
|
||||
* <p>The returned length accounts for the replacement of malformed-input and unmappable-character
|
||||
* sequences with the charset's default replacement byte array.
|
||||
*
|
||||
* <p>The result will be the same value as {@link #getBytes(Charset) getBytes(cs).length}.
|
||||
*
|
||||
* @apiNote This method provides equivalent or better performance than {@link #getBytes(Charset)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user