Package arcommon.net
Class LineConnection
- java.lang.Object
-
- arcommon.net.LineConnection
-
- Direct Known Subclasses:
LineClient
public class LineConnection extends java.lang.Object
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedLineConnection()LineConnection(java.net.Socket pclientSocket)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()booleanisConnected()char[]readChars(int length)java.lang.StringreadLine()voidsendLine(java.lang.String line)protected voidsetClientSocket(java.net.Socket pclientSocket)
-
-
-
Constructor Detail
-
LineConnection
public LineConnection(java.net.Socket pclientSocket) throws java.io.IOException
- Throws:
java.io.IOException
-
LineConnection
protected LineConnection()
-
-
Method Detail
-
setClientSocket
protected void setClientSocket(java.net.Socket pclientSocket) throws java.io.IOException
- Throws:
java.io.IOException
-
readLine
public java.lang.String readLine()
-
readChars
public char[] readChars(int length)
-
isConnected
public boolean isConnected()
-
sendLine
public void sendLine(java.lang.String line)
-
close
public void close()
-
-