An unnamed UnixDomainSocketAddress
has
an empty path. The local address of a SocketChannel
to a Unix domain socket
that is automatically or implicitly bound will be unnamed.
Path
objects used to create instances of this class must be obtained
from the system-default file system.
java.nio.channels.SocketChannel
, java.nio.channels.ServerSocketChannel
Modifier and Type | Class and Description |
---|---|
private static class | UnixDomainSocketAddress.
A serial proxy for all |
Modifier and Type | Field and Description |
---|---|
private final transient Path | |
pack-priv static final long |
Access | Constructor and Description |
---|---|
private |
Modifier and Type | Method and Description |
---|---|
public boolean | Returns: true if the path fields are equalthe reference object with which to compare. o)Overrides java. Compares this address with another object. |
public Path | |
public int | hashCode()
Overrides java. Returns the hash code of this |
public static UnixDomainSocketAddress | |
public static UnixDomainSocketAddress | |
private void | |
private void | |
public String | Returns: this address's path which may be empty for an unnamed addressOverrides java. Returns a string representation of this |
private Object | Returns: aSer representing the path name of this instanceReturns a Ser containing the path name of this instance. |
path | back to summary |
---|---|
private final transient Path path |
serialVersionUID | back to summary |
---|---|
pack-priv static final long serialVersionUID Hides java. |
UnixDomainSocketAddress | back to summary |
---|---|
private UnixDomainSocketAddress(Path path) |
equals | back to summary |
---|---|
public boolean equals(Object o) Overrides java. Compares this address with another object.
|
getPath | back to summary |
---|---|
public Path getPath() Returns this address's path.
|
hashCode | back to summary |
---|---|
public int hashCode() Overrides java. Returns the hash code of this
|
of | back to summary |
---|---|
public static UnixDomainSocketAddress of(String pathname) Creates a UnixDomainSocketAddress from the given path string.
|
of | back to summary |
---|---|
public static UnixDomainSocketAddress of(Path path) Creates a UnixDomainSocketAddress for the given path.
|
readObject | back to summary |
---|---|
private void readObject(ObjectInputStream s) throws InvalidObjectException Throws InvalidObjectException, always.
|
readObjectNoData | back to summary |
---|---|
private void readObjectNoData() throws InvalidObjectException Throws InvalidObjectException, always.
|
toString | back to summary |
---|---|
public String toString() Overrides java. Returns a string representation of this |
writeReplace | back to summary |
---|---|
private Object writeReplace() throws ObjectStreamException Returns a Ser containing the path name of this instance.
|
UnixDomainSocketAddress
instances.
It captures the file path name and reconstructs using the public static
factory
.
Modifier and Type | Field and Description |
---|---|
private final String | pathname
The path name. |
pack-priv static final long |
Modifier and Type | Method and Description |
---|---|
private Object | Returns: a UnixDomainSocketAddressCreates a |
pathname | back to summary |
---|---|
private final String pathname The path name. |
serialVersionUID | back to summary |
---|---|
pack-priv static final long serialVersionUID
|
Ser | back to summary |
---|---|
pack-priv Ser(String pathname) |
readResolve | back to summary |
---|---|
private Object readResolve() Creates a |