123456789101112131415161718192021222324252627282930313233343536373839 |
- package gnu.gcj.convert;
- public class Input_8859_1 extends BytesToUnicode
- {
- public String getName() { return "8859_1"; }
- public int read (char[] outbuffer, int outpos, int count)
- {
- int origpos = outpos;
-
- int inpos = this.inpos;
- byte[] inbuffer = this.inbuffer;
- int inavail = this.inlength - inpos;
- int outavail = count;
- if (outavail > inavail)
- outavail = inavail;
- while (--outavail >= 0)
- {
- outbuffer[outpos++] = (char) (inbuffer[inpos++] & 0xFF);
- }
- this.inpos = inpos;
- return outpos - origpos;
- }
- }
|