readLine
public static void readLine(java.net.Socket socket,
java.lang.StringBuilder buf,
int timeout)
throws java.io.IOException
Read a line teriminated by newline, with a total read timeout.
Warning - strips \n but not \r
Warning - 8KB line length limit as of 0.7.13, @throws IOException if exceeded
- パラメータ:
buf
- output
timeout
- forever if if zero or negative
- 例外:
java.net.SocketTimeoutException
- if timeout is reached before newline
java.io.EOFException
- if EOF is reached before newline
net.i2p.sam.ReadLine.LineTooLongException
- if too long
java.io.IOException
- on other errors in the underlying stream