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

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

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

revision 1.5 by mkoch, Mon Mar 3 07:09:20 2003 UTC revision 1.5.2.1 by gnu_andrew, Mon Apr 18 01:37:38 2005 UTC
# Line 183  public abstract class CharsetEncoder Line 183  public abstract class CharsetEncoder
183        cr.throwException ();        cr.throwException ();
184    
185      out.flip ();      out.flip ();
186      return out;  
187        // Unfortunately, resizing the actual bytebuffer array is required.
188        byte[] resized = new byte[out.remaining()];
189        out.get(resized);
190        return ByteBuffer.wrap(resized);
191    }    }
192    
193    public final CoderResult encode (CharBuffer in, ByteBuffer out,    public final CoderResult encode (CharBuffer in, ByteBuffer out,

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

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