Commit cc51f4fb by Julian Scheid Committed by Mark Wielaard

UTF_8.java (decodeLoop): Set inPos to in.position().

2005-02-16  Julian Scheid  <julian@sektor37.de>

       * gnu/java/nio/charset/UTF_8.java (decodeLoop): Set inPos to
       in.position().
       (encodeLoop): Likewise.

From-SVN: r95125
parent 2f6363f9
2005-02-16 Julian Scheid <julian@sektor37.de>
* gnu/java/nio/charset/UTF_8.java (decodeLoop): Set inPos to
in.position().
(encodeLoop): Likewise.
2005-02-16 Mark Wielaard <mark@klomp.org> 2005-02-16 Mark Wielaard <mark@klomp.org>
* Makefile.am (ordinary_java_source_files): Add new files * Makefile.am (ordinary_java_source_files): Add new files
......
...@@ -101,7 +101,7 @@ final class UTF_8 extends Charset ...@@ -101,7 +101,7 @@ final class UTF_8 extends Charset
protected CoderResult decodeLoop (ByteBuffer in, CharBuffer out) protected CoderResult decodeLoop (ByteBuffer in, CharBuffer out)
{ {
// TODO: Optimize this in the case in.hasArray() / out.hasArray() // TODO: Optimize this in the case in.hasArray() / out.hasArray()
int inPos = 0; int inPos = in.position();
try try
{ {
while (in.hasRemaining ()) while (in.hasRemaining ())
...@@ -196,7 +196,7 @@ final class UTF_8 extends Charset ...@@ -196,7 +196,7 @@ final class UTF_8 extends Charset
protected CoderResult encodeLoop (CharBuffer in, ByteBuffer out) protected CoderResult encodeLoop (CharBuffer in, ByteBuffer out)
{ {
int inPos = 0; int inPos = in.position();
try try
{ {
// TODO: Optimize this in the case in.hasArray() / out.hasArray() // TODO: Optimize this in the case in.hasArray() / out.hasArray()
......
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