Commit 752ef873 by Michael Koch Committed by Michael Koch

2004-10-16 Michael Koch <konqueror@gmx.de>

	* gnu/java/nio/charset/UTF_16Encoder.java
	(UTF_16Encoder): Fixed maxBytesPerChar handling.

From-SVN: r89150
parent 7af8968e
2004-10-16 Michael Koch <konqueror@gmx.de> 2004-10-16 Michael Koch <konqueror@gmx.de>
* gnu/java/nio/charset/UTF_16Encoder.java
(UTF_16Encoder): Fixed maxBytesPerChar handling.
2004-10-16 Michael Koch <konqueror@gmx.de>
* java/math/BigDecimal.java, java/math/BigInteger.java: * java/math/BigDecimal.java, java/math/BigInteger.java:
Reorganized import statements, removed redundant and Reorganized import statements, removed redundant and
reorganized modifiers. reorganized modifiers.
......
...@@ -63,7 +63,7 @@ final class UTF_16Encoder extends CharsetEncoder ...@@ -63,7 +63,7 @@ final class UTF_16Encoder extends CharsetEncoder
UTF_16Encoder (Charset cs, int byteOrder, boolean useByteOrderMark) UTF_16Encoder (Charset cs, int byteOrder, boolean useByteOrderMark)
{ {
super (cs, 2.0f, super (cs, 2.0f,
useByteOrderMark ? 4.0f : 2.0f, useByteOrderMark ? 2.0f : 4.0f,
byteOrder == BIG_ENDIAN byteOrder == BIG_ENDIAN
? new byte[] { (byte) 0xFF, (byte) 0xFD } ? new byte[] { (byte) 0xFF, (byte) 0xFD }
: new byte[] { (byte) 0xFD, (byte) 0xFF }); : new byte[] { (byte) 0xFD, (byte) 0xFF });
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment