Lines Matching defs:in
6 * (the "License"); you may not use this file except in compliance with
11 * Unless required by applicable law or agreed to in writing, software
34 * as specified in RFC 2045 (http://www.ietf.org/rfc/rfc2045.txt).
38 public static byte[] decode(byte[] in) {
39 return decode(in, in.length);
42 public static byte[] decode(byte[] in, int len) {
57 chr = in[len-1];
69 // index in the output array
71 // index in the input array
78 chr = in[i];
138 public static String encode(byte[] in, String charsetName) throws UnsupportedEncodingException {
139 int length = in.length * 4 / 3;
142 int index = 0, i, crlr = 0, end = in.length - in.length%3;
144 out[index++] = map[(in[i] & 0xff) >> 2];
145 out[index++] = map[((in[i] & 0x03) << 4)
146 | ((in[i+1] & 0xff) >> 4)];
147 out[index++] = map[((in[i+1] & 0x0f) << 2)
148 | ((in[i+2] & 0xff) >> 6)];
149 out[index++] = map[(in[i+2] & 0x3f)];
157 switch (in.length % 3) {
159 out[index++] = map[(in[end] & 0xff) >> 2];
160 out[index++] = map[(in[end] & 0x03) << 4];
165 out[index++] = map[(in[end] & 0xff) >> 2];
166 out[index++] = map[((in[end] & 0x03) << 4)
167 | ((in[end+1] & 0xff) >> 4)];
168 out[index++] = map[((in[end+1] & 0x0f) << 2)];