public class SocketWriter extends FilterWriter
out| Constructor and Description |
|---|
SocketWriter(DatagramSocket datagramSocket,
Charset charset) |
SocketWriter(InetSocketAddress inetSocketAddress,
Charset charset) |
SocketWriter(Socket socket,
Charset charset) |
| Modifier and Type | Method and Description |
|---|---|
DatagramSocket |
getDatagramSocket()
Return the underlying DatagramSocket
|
Socket |
getSocket()
Return the underlying Socket
|
String |
toString() |
public SocketWriter(InetSocketAddress inetSocketAddress, Charset charset) throws IOException
inetSocketAddress - host and port of the underlying Socketcharset - charset of the OutputStream underlying SocketIOExceptionpublic SocketWriter(Socket socket, Charset charset) throws IOException
IOExceptionpublic SocketWriter(DatagramSocket datagramSocket, Charset charset) throws IOException
IOExceptionpublic DatagramSocket getDatagramSocket()
Copyright © 2017. All Rights Reserved.