📄 s.java
字号:
// Decompiled by DJ v3.9.9.91 Copyright 2005 Atanas Neshkov Date: 2006-5-1 19:31:43
// Home Page : http://members.fortunecity.com/neshkov/dj.html - Check often for new version!
// Decompiler options: packimports(3)
public final class s
{
public s()
{
}
public static final String a(String s1)
{
return new String(ConvertByteToChar(s1.getBytes()));
}
public static final char[] ConvertByteToChar(byte abyte0[])
{
int i;
int j = ((i = abyte0.length) * 4 + 2) / 3;
int k;
char ac[] = new char[k = ((i + 2) / 3) * 4];
int l = 0;
for(int i1 = 0; l < i; i1++)
{
int j1 = abyte0[l++] & 0xff;
int k1 = l >= i ? 0 : abyte0[l++] & 0xff;
int l1 = l >= i ? 0 : abyte0[l++] & 0xff;
int i2 = j1 >>> 2;
int j2 = (j1 & 3) << 4 | k1 >>> 4;
int k2 = (k1 & 0xf) << 2 | l1 >>> 6;
int l2 = l1 & 0x3f;
ac[i1++] = a_char_array1d_static_fld[i2];
ac[i1++] = a_char_array1d_static_fld[j2];
ac[i1] = i1 >= j ? '=' : a_char_array1d_static_fld[k2];
i1++;
ac[i1] = i1 >= j ? '=' : a_char_array1d_static_fld[l2];
}
return ac;
}
public static final String b(String s1)
{
return new String(a(s1.toCharArray()));
}
public static final byte[] a(char ac[])
{
int i;
if((i = ac.length) % 4 != 0)
throw new IllegalArgumentException("Length of Base64 encoded input string is not a multiple of 4.");
for(; i > 0 && ac[i - 1] == '='; i--);
int j;
byte abyte0[] = new byte[j = (i * 3) / 4];
int k = 0;
int l = 0;
do
{
if(k >= i)
break;
char c = ac[k++];
char c1 = ac[k++];
char c2 = k >= i ? 'A' : ac[k++];
char c3 = k >= i ? 'A' : ac[k++];
if(c > '\177' || c1 > '\177' || c2 > '\177' || c3 > '\177')
throw new IllegalArgumentException("Illegal character in Base64 encoded data.");
byte byte0 = a_byte_array1d_static_fld[c];
byte byte1 = a_byte_array1d_static_fld[c1];
byte byte2 = a_byte_array1d_static_fld[c2];
byte byte3 = a_byte_array1d_static_fld[c3];
if(byte0 < 0 || byte1 < 0 || byte2 < 0 || byte3 < 0)
throw new IllegalArgumentException("Illegal character in Base64 encoded data.");
int i1 = byte0 << 2 | byte1 >>> 4;
int j1 = (byte1 & 0xf) << 4 | byte2 >>> 2;
int k1 = (byte2 & 3) << 6 | byte3;
abyte0[l++] = (byte)i1;
if(l < j)
abyte0[l++] = (byte)j1;
if(l < j)
abyte0[l++] = (byte)k1;
} while(true);
return abyte0;
}
private static char a_char_array1d_static_fld[];
private static byte a_byte_array1d_static_fld[];
static
{
a_char_array1d_static_fld = new char[64];
int i = 0;
for(char c = 'A'; c <= 'Z'; c++)
a_char_array1d_static_fld[i++] = c;
for(char c1 = 'a'; c1 <= 'z'; c1++)
a_char_array1d_static_fld[i++] = c1;
for(char c2 = '0'; c2 <= '9'; c2++)
a_char_array1d_static_fld[i++] = c2;
a_char_array1d_static_fld[i++] = '+';
a_char_array1d_static_fld[i] = '/';
a_byte_array1d_static_fld = new byte[128];
for(int j = 0; j < a_byte_array1d_static_fld.length; j++)
a_byte_array1d_static_fld[j] = -1;
for(int k = 0; k < 64; k++)
a_byte_array1d_static_fld[a_char_array1d_static_fld[k]] = (byte)k;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -