正在加载图片...
Exchanging information in Java Each program uses an instance of -Inputstream to receive messages from the other program -Outputstream to send messages to the other program These are found in package java.io output new Outputstream(clientsocket getoutputstream())i input =new InputStream (clientSocket. getInputstream())i www.oseng.com O Lethbridge/Laganiere 2001 Chap 3: Basing Development on Reusable© Lethbridge/Laganière 2001 Chap. 3: Basing Development on Reusable Technology 24 Exchanging information in Java • Each program uses an instance of — InputStream to receive messages from the other program — OutputStream to send messages to the other program —These are found in package java.io output = new OutputStream(clientSocket.getOutputStream()); input = new InputStream(clientSocket.getInputStream());
<<向上翻页向下翻页>>
©2008-现在 cucdc.com 高等教育资讯网 版权所有