解决方法
答案终于很简单:
Socket client = new Socket(_IP,PORT); oStream = new PrintStream(client.getOutputStream(),true,"UTF-8"); oStream.println("-------------------------------------------------\r\n"); oStream.println(" NAME : DEMO CLIENT\r\n"); oStream.println(" CODE : 00000234242\r\n"); oStream.println(" ADDRESS : Street 52\r\n"); oStream.println(" Phone : 2310-892345\r\n"); oStream.println("-------------------------------------------------\r\n"); oStream.flush(); oStream.close(); client.close();