|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Client_network_interface
Method Summary | |
---|---|
boolean |
get_line(java.lang.StringBuffer str_buf)
Attempt to read one line from the server. |
void |
send_line(java.lang.String line)
Send one line to the server. |
Method Detail |
---|
void send_line(java.lang.String line) throws java.io.IOException
line
- This should end in a newline.
java.io.IOException
- if the line can not be sent.boolean get_line(java.lang.StringBuffer str_buf) throws java.io.IOException
The bytes read are converted to a String according to ASCII encoding.
Byte value 10 is used to mark the end of lines.
str_buf
- a string buffer onto which the line will be appended if
a line is read. Typically you would pass a new string buffer.
java.io.IOException
- if there was trouble reading the line.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |