2008-07-14

java IO

关键字: io
InputSteam & OutputSteam InputStream (InputStreamReader) BufferedInputStream : used as other input stream's wrapper. ByteArrayInputStream : new ByteArrayInputStream(byteContent), A ByteArrayInputStream contains an internal buffer that contains bytes that may be read from the stream ...
2008-06-24

Class简单使用

关键字: rtti
//how to get class Class clazz = String.class; clazz = int.class; String s = "abc"; clazz = s.getClass(); clazz = Class.forName("java.util.ArrayList"); //create instance using default constructor List list = (List) clazz.newInstance(); //isXX ...
2008-06-23

regexp 简单运用

关键字: regexp
        //split         String s = "hello world i am 23 years";         String[] ss = s.split("\\s");         //replace      &nbs ...
2008-05-29

ImageServlet

关键字: servlet
public class ImageServlet extends HttpServlet {     @Override     protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {         //get the image parameter       ...
2006-12-15

日期处理

关键字: data and dataformat
  DateFormat DF =       // 2006-12-12 11:54:47 格式            DateFormat.getDateTimeInstance (DateFormat. MEDIUM , DateFormat. MEDIUM );           &n ...
xushaoxun
搜索本博客
我的相册
C71f41f7-65f6-4553-ae3b-894557e71278-thumb
inter
共 2 张
最近加入圈子
存档
最新评论