java eml解析

来源:互联网 发布:soap apache axis 编辑:程序博客网 时间:2024/06/05 16:49

   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 0
原创粉丝点击