public class LocalSocketAddress extends Object
Modifier and Type | Class and Description |
---|---|
static class |
LocalSocketAddress.Namespace
The namespace that this address exists in.
|
Constructor and Description |
---|
LocalSocketAddress(String name)
Creates an instance with a given name in the
LocalSocketAddress.Namespace.ABSTRACT
namespace |
LocalSocketAddress(String name,
LocalSocketAddress.Namespace namespace)
Creates an instance with a given name.
|
Modifier and Type | Method and Description |
---|---|
String |
getName()
Retrieves the string name of this address
|
LocalSocketAddress.Namespace |
getNamespace()
Returns the namespace used by this address.
|
public LocalSocketAddress(String name, LocalSocketAddress.Namespace namespace)
name
- non-null namenamespace
- namespace the name should be created in.public LocalSocketAddress(String name)
LocalSocketAddress.Namespace.ABSTRACT
namespacename
- non-null namepublic String getName()
public LocalSocketAddress.Namespace getNamespace()