/[classpath]/classpath/java/nio/charset/CharsetDecoder.java
ViewVC logotype

Diff of /classpath/java/nio/charset/CharsetDecoder.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.5 by mkoch, Thu Jul 15 13:21:10 2004 UTC revision 1.6 by smarothy, Sat Apr 9 03:21:27 2005 UTC
# Line 131  public abstract class CharsetDecoder Line 131  public abstract class CharsetDecoder
131    
132      reset();      reset();
133      out.flip ();      out.flip ();
134      return out;  
135        // Unfortunately, resizing the actual charbuffer array is required.
136        char[] resized = new char[out.remaining()];
137        out.get(resized);
138        return CharBuffer.wrap(resized);
139    }    }
140    
141    public final CoderResult decode (ByteBuffer in, CharBuffer out,    public final CoderResult decode (ByteBuffer in, CharBuffer out,
# Line 156  public abstract class CharsetDecoder Line 160  public abstract class CharsetDecoder
160              cr = decodeLoop (in, out);              cr = decodeLoop (in, out);
161            }            }
162          catch (RuntimeException e)          catch (RuntimeException e)
163            {            {
164              throw new CoderMalfunctionError (e);              throw new CoderMalfunctionError (e);
165            }            }
166    

Legend:
Removed from v.1.5  
changed lines
  Added in v.1.6

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26