±Û¾´ÀÌ :ŵð 2000³â 7¿ù 03ÀÏ 11:07:34
¼ÒÄÏ»ý¼ºÈÄ ¼ÒÄÏÀÇ InputStream »ý¼º½Ã NullPointExceptionÀÌ ¹ß»ýÇϴµ¥ ¿øÀÎÀ» ¸ð¸£°Ú½À´Ï´Ù.°í¼ö´Ôµé ±ÞÇØ¿©.ºÎŹ ¶Ç ºÎŹµå¸³´Ï´Ù.
public String comm_read() {
InputStream inn = null;
String read_buff = "";
try {
inn = c_socket.getInputStream();
buff_inn = new BufferedInputStream(inn);
data_inn = new DataInputStream(buff_inn);
} catch (IOException e) {
return "";
}
try {
read_buff = data_inn.readLine();
} catch (IOException e) {
return "";
}
return read_buff;
}