1:
8:
9: package ;
10:
11:
16:
17: public class Input_8859_1 extends BytesToUnicode
18: {
19: public String getName() { return "8859_1"; }
20:
21: public int read (char[] outbuffer, int outpos, int count)
22: {
23: int origpos = outpos;
24:
25: int inpos = this.inpos;
26: byte[] inbuffer = this.inbuffer;
27: int inavail = this.inlength - inpos;
28: int outavail = count;
29: if (outavail > inavail)
30: outavail = inavail;
31: while (--outavail >= 0)
32: {
33: outbuffer[outpos++] = (char) (inbuffer[inpos++] & 0xFF);
34: }
35: this.inpos = inpos;
36: return outpos - origpos;
37: }
38: }