gnu.gcj.convert
Class Input_UTF8
Convert UTF8 to Unicode.
String | getName()
|
int | read(char[] outbuffer, int outpos, int count) - Convert bytes to chars.
|
clone , equals , extends Object> getClass , finalize , hashCode , notify , notifyAll , toString , wait , wait , wait |
read
public int read(char[] outbuffer,
int outpos,
int count)
Convert bytes to chars.
Input bytes are taken from this.inbuffer. The available input
bytes start at inbuffer[inpos], and end at inbuffer[inlength-1].
- read in interface BytesToUnicode
outbuffer
- buffer for the converted characteroutpos
- position in buffer to start putting converted characterscount
- the maximum number of characters to convert
- number of chars placed in outbuffer.
Also, this.inpos is incremented by the number of bytes consumed.
(Note the asymmetry in that the input upper bound is inbuffer[inlength-1],
while the output upper bound is outbuffer[outpos+count-1]. The
justification is that inlength is like the count field of a
BufferedInputStream, while the count parameter is like the
length parameter of a read request.) The count parameter is
also defined to be <= outbuffer.length - outpos (per the specification
of the length parameter for a read request).
Copyright (C) 1999, 2000 Free Software Foundation
This file is part of libgcj.
This software is copyrighted work licensed under the terms of the
Libgcj License. Please consult the file "LIBGCJ_LICENSE" for
details.