标签:
class MimeHeader extends Hashtable{ void parse(String data) { StringTokenizer st = new StringTokenizer(data,"\r\n"); while(st.hasMoreTokens()){ String s = st.nextToken(); int colon = s.indexOf(‘:‘); String key = s.substring(0,colon); String val = s.substring(colon + 2); put (key,val); }} }
标签:
原文地址:http://www.cnblogs.com/mywy/p/5056590.html