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, |
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 |
|
|