java eml解析_z

public static void main(String[] args) throws IOException {  
byte[] buff = new byte[1024];
byte[] s=(new BASE64Decoder()).decode("MS5rdHI=");
InputStream is = new ByteArrayInputStream(s);
int len = -1;
while(-1 != (len = is.read(buff))) {
String res = new String(buff, 0, len);
System.out.println(res);
}
}