From 98733aaa6391da99ad75355a573c6bda317a24c1 Mon Sep 17 00:00:00 2001 From: sherman Date: Wed, 25 Jun 2008 08:27:06 -0700 Subject: [PATCH] 4752069: (cs spec) BOM should not be ignored in UTF-16 charsets Summary: API doc update regarding BOM hanlding in UTF-16 charsets Reviewed-by: alanb --- .../classes/java/nio/charset/Charset.java | 21 ++++++++++--------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/src/share/classes/java/nio/charset/Charset.java b/src/share/classes/java/nio/charset/Charset.java index 4c166d519..455c5f301 100644 --- a/src/share/classes/java/nio/charset/Charset.java +++ b/src/share/classes/java/nio/charset/Charset.java @@ -188,21 +188,22 @@ import sun.security.action.GetPropertyAction; * * - * In any case, when a byte-order mark is read at the beginning of a decoding - * operation it is omitted from the resulting sequence of characters. Byte - * order marks occuring after the first element of an input sequence are not - * omitted since the same code is used to represent ZERO-WIDTH - * NON-BREAKING SPACE. + * In any case, byte order marks occuring after the first element of an + * input sequence are not omitted since the same code is used to represent + * ZERO-WIDTH NON-BREAKING SPACE. * *

Every instance of the Java virtual machine has a default charset, which * may or may not be one of the standard charsets. The default charset is -- GitLab