Package org.java_websocket.client
Class WebSocketClient.WebsocketWriteThread
- java.lang.Object
-
- org.java_websocket.client.WebSocketClient.WebsocketWriteThread
-
- All Implemented Interfaces:
java.lang.Runnable
- Enclosing class:
- WebSocketClient
private class WebSocketClient.WebsocketWriteThread extends java.lang.Object implements java.lang.Runnable
-
-
Field Summary
Fields Modifier and Type Field Description private WebSocketClient
webSocketClient
-
Constructor Summary
Constructors Constructor Description WebsocketWriteThread(WebSocketClient webSocketClient)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private void
closeSocket()
Closing the socketvoid
run()
private void
runWriteData()
Write the data into the outstream
-
-
-
Field Detail
-
webSocketClient
private final WebSocketClient webSocketClient
-
-
Constructor Detail
-
WebsocketWriteThread
WebsocketWriteThread(WebSocketClient webSocketClient)
-
-
Method Detail
-
run
public void run()
- Specified by:
run
in interfacejava.lang.Runnable
-
runWriteData
private void runWriteData() throws java.io.IOException
Write the data into the outstream- Throws:
java.io.IOException
- if write or flush did not work
-
closeSocket
private void closeSocket()
Closing the socket
-
-