0
点赞
收藏
分享

微信扫一扫

java eml解析

巧乐兹_d41f 2022-07-27 阅读 49


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);
}
}

举报

相关推荐

0 条评论