ViewServer ：
创建一个socket，连接到本机的ViewServer上：

   1:  Socket socket = new Socket();
   2:  socket.connect(new InetSocketAddress("127.0.0.1", 4939));
   3、 与ViewServer通信：

   1:  BufferedWriter out = new BufferedWriter(new
OutputStreamWriter(socket.getOutputStream()));
   2:  BufferedReader in = new BufferedReader(new
InputStreamReader(socket.getInputStream(), "utf-8"));
   3:  out.write("DUMP -1");
   4:  out.newLine();
   5:  out.flush();
   6:  String line = null;
   7:  int maxCount = 0;
   8:  while ( (maxCount < 4) && ((line = in.readLine()) != null) ) {
   9:  ... ...
  10:  }