43、当已经创建了Socket对象s来连接到远程服务器,下列哪个是最合适的方法来立即从socket读取ASCII数据(E)
A、InputStream in = s.getInputStream();
B、DataInputStream in = new DataInputstream(s.getInputStream());
C、ByteArrayInputStream in = new ByteArrayInputStream(s.getInputStream());
D、BufferedReader in=new BufferedReader(new InputStreamReader(s.getInputStream()),“ios-8859-1”);
E、BufferedReader in = new BufferedReader(new InputStreamReader(s.getInputStream()));
|
|