如下两个方法  红色的部分  我试了好多有Base64的jar包 都没有这两个方法啊,用过的同学赶紧来解答一下啊!!!
public static String zipString(String aInput) {
// Encode a String into bytes
byte[] input;
try {
if (aInput == null) return null;

input = aInput.getBytes("UTF-8"); // Compress the bytes
Deflater compresser = new Deflater();
compresser.setLevel(Deflater.BEST_COMPRESSION);
compresser.setInput(input);
compresser.finish(); ByteArrayOutputStream bos = new ByteArrayOutputStream(input.length); byte[] buf = new byte[1024];
while (!compresser.finished()) {
int count = compresser.deflate(buf);
bos.write(buf, 0, count);
}
bos.close(); byte[] bt = bos.toByteArray();
return Base64.encodeToString(bt, true); } catch (UnsupportedEncodingException e) {
e.printStackTrace();
} catch (IOException e) {
e.printStackTrace();
}
return null;
}
public static String unZipString(String aInput) {
byte[] input;
try {
if (aInput == null) return null;

input = Base64.decodeFast(aInput);
Inflater decompresser = new Inflater();
decompresser.setInput(input, 0, input.length); ByteArrayOutputStream bos = new ByteArrayOutputStream(input.length); byte[] buf = new byte[1024];
while (!decompresser.finished()) {
int count = decompresser.inflate(buf);
bos.write(buf, 0, count);
}
bos.close(); return bos.toString("UTF-8"); } catch (UnsupportedEncodingException e1) {
e1.printStackTrace();
} catch (DataFormatException e) {
e.printStackTrace();
} catch (IOException e) {
e.printStackTrace();
}
return null; }