public class NamedPipeSocket extends Socket
Socket
implementation for named pipes.Modifier and Type | Method and Description |
---|---|
void |
close() |
static NamedPipeSocket |
get(String path)
Return a new
NamedPipeSocket for the given path. |
protected RandomAccessFile |
getFile() |
InputStream |
getInputStream() |
OutputStream |
getOutputStream() |
bind, connect, connect, getChannel, getInetAddress, getKeepAlive, getLocalAddress, getLocalPort, getLocalSocketAddress, getOOBInline, getPort, getReceiveBufferSize, getRemoteSocketAddress, getReuseAddress, getSendBufferSize, getSoLinger, getSoTimeout, getTcpNoDelay, getTrafficClass, isBound, isClosed, isConnected, isInputShutdown, isOutputShutdown, sendUrgentData, setKeepAlive, setOOBInline, setPerformancePreferences, setReceiveBufferSize, setReuseAddress, setSendBufferSize, setSocketImplFactory, setSoLinger, setSoTimeout, setTcpNoDelay, setTrafficClass, shutdownInput, shutdownOutput, toString
public InputStream getInputStream()
getInputStream
in class Socket
public OutputStream getOutputStream()
getOutputStream
in class Socket
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in class Socket
IOException
protected final RandomAccessFile getFile()
public static NamedPipeSocket get(String path) throws IOException
NamedPipeSocket
for the given path.path
- the path to the domain socketNamedPipeSocket
instanceIOException
- if the socket cannot be opened