Class NamedPipeSocket
java.lang.Object
java.net.Socket
org.springframework.boot.buildpack.platform.socket.NamedPipeSocket
- All Implemented Interfaces:
Closeable,AutoCloseable
A
Socket implementation for named pipes.- Since:
- 2.3.0
- Author:
- Phillip Webb, Scott Frederick
-
Method Summary
Modifier and TypeMethodDescriptionvoidclose()voidconnect(SocketAddress endpoint) voidconnect(SocketAddress endpoint, int timeout) static NamedPipeSocketReturn a newNamedPipeSocketfor the given path.Methods inherited from class java.net.Socket
bind, getChannel, getInetAddress, getKeepAlive, getLocalAddress, getLocalPort, getLocalSocketAddress, getOOBInline, getOption, getPort, getReceiveBufferSize, getRemoteSocketAddress, getReuseAddress, getSendBufferSize, getSoLinger, getSoTimeout, getTcpNoDelay, getTrafficClass, isBound, isClosed, isConnected, isInputShutdown, isOutputShutdown, sendUrgentData, setKeepAlive, setOOBInline, setOption, setPerformancePreferences, setReceiveBufferSize, setReuseAddress, setSendBufferSize, setSocketImplFactory, setSoLinger, setSoTimeout, setTcpNoDelay, setTrafficClass, shutdownInput, shutdownOutput, supportedOptions, toString
-
Method Details
-
connect
- Overrides:
connectin classSocket- Throws:
IOException
-
connect
- Overrides:
connectin classSocket- Throws:
IOException
-
getInputStream
- Overrides:
getInputStreamin classSocket
-
getOutputStream
- Overrides:
getOutputStreamin classSocket
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classSocket- Throws:
IOException
-
get
Return a newNamedPipeSocketfor the given path.- Parameters:
path- the path to the domain socket- Returns:
- a
NamedPipeSocketinstance - Throws:
IOException- if the socket cannot be opened
-