类 UnixDomainSocket
java.lang.Object
java.net.Socket
org.springframework.boot.buildpack.platform.socket.UnixDomainSocket
- 所有已实现的接口:
Closeable,AutoCloseable
A
Socket implementation for Unix domain sockets.- 从以下版本开始:
- 3.4.0
- 作者:
- Scott Frederick
-
方法概要
修饰符和类型方法说明voidclose()voidconnect(SocketAddress endpoint) voidconnect(SocketAddress endpoint, int timeout) static SocketCreate a newSocketfor the given path.booleanisBound()booleanvoidvoid从类继承的方法 java.net.Socket
bind, getChannel, getKeepAlive, getLocalPort, getOOBInline, getOption, getPort, getReceiveBufferSize, getReuseAddress, getSendBufferSize, getSoLinger, getSoTimeout, getTcpNoDelay, getTrafficClass, isClosed, isInputShutdown, isOutputShutdown, sendUrgentData, setKeepAlive, setOOBInline, setOption, setPerformancePreferences, setReceiveBufferSize, setReuseAddress, setSendBufferSize, setSocketImplFactory, setSoLinger, setSoTimeout, setTcpNoDelay, setTrafficClass, supportedOptions, toString
-
方法详细资料
-
get
Create a newSocketfor the given path.- 参数:
path- the path to the domain socket- 返回:
- a
Socketinstance - 抛出:
IOException- if the socket cannot be opened
-
getInputStream
- 覆盖:
getInputStream在类中Socket- 抛出:
IOException
-
getOutputStream
- 覆盖:
getOutputStream在类中Socket- 抛出:
IOException
-
getLocalSocketAddress
-
getRemoteSocketAddress
-
close
- 指定者:
close在接口中AutoCloseable- 指定者:
close在接口中Closeable- 覆盖:
close在类中Socket- 抛出:
IOException
-
connect
- 覆盖:
connect在类中Socket- 抛出:
IOException
-
connect
- 覆盖:
connect在类中Socket- 抛出:
IOException
-
isConnected
public boolean isConnected()- 覆盖:
isConnected在类中Socket
-
isBound
public boolean isBound() -
shutdownInput
- 覆盖:
shutdownInput在类中Socket- 抛出:
IOException
-
shutdownOutput
- 覆盖:
shutdownOutput在类中Socket- 抛出:
IOException
-
getInetAddress
- 覆盖:
getInetAddress在类中Socket
-
getLocalAddress
- 覆盖:
getLocalAddress在类中Socket
-