public class UnixSocketAddress
extends java.net.SocketAddress
Using an abstract name space is denoted by the socket path starting with a NUL byte. Sockets in abstract name space have no entry in the file system. When linux performs autobind, it constructs the resulting path with a leading NUL, followed by a unique 5-digit hexadecimal number.
Modifier and Type | Field and Description |
---|---|
private SockAddrUnix |
address |
private static long |
serialVersionUID |
Constructor and Description |
---|
UnixSocketAddress() |
UnixSocketAddress(java.io.File path) |
UnixSocketAddress(java.lang.String path) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object _other) |
(package private) SockAddrUnix |
getStruct() |
int |
hashCode() |
java.lang.String |
humanReadablePath()
Returns a human readable path.
|
(package private) int |
length() |
java.lang.String |
path()
Retrieves the path.
|
private void |
readObject(java.io.ObjectInputStream o) |
java.lang.String |
toString()
Retrieves a human readable description of this address.
|
private void |
writeObject(java.io.ObjectOutputStream o) |
private static final long serialVersionUID
private transient SockAddrUnix address
UnixSocketAddress()
public UnixSocketAddress(java.io.File path)
public UnixSocketAddress(java.lang.String path)
SockAddrUnix getStruct()
int length()
public java.lang.String path()
public java.lang.String humanReadablePath()
public java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(java.lang.Object _other)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
private void writeObject(java.io.ObjectOutputStream o) throws java.io.IOException
java.io.IOException
private void readObject(java.io.ObjectInputStream o) throws java.io.IOException, java.lang.ClassNotFoundException
java.io.IOException
java.lang.ClassNotFoundException