Build 1.0_r1(from source)

android.net
Enum LocalSocketAddress.Namespace

java.lang.Object
  extended by java.lang.Enum<LocalSocketAddress.Namespace>
      extended by android.net.LocalSocketAddress.Namespace
All Implemented Interfaces:
Serializable, Comparable<LocalSocketAddress.Namespace>
Enclosing class:
LocalSocketAddress

public static enum LocalSocketAddress.Namespace
extends Enum<LocalSocketAddress.Namespace>

The namespace that this address exists in. See also include/cutils/sockets.h ANDROID_SOCKET_NAMESPACE_*


Enum Constant Summary
ABSTRACT
          A socket in the Linux abstract namespace
FILESYSTEM
          A socket named with a normal filesystem path.
RESERVED
          A socket in the Android reserved namespace in /dev/socket.
 
Method Summary
(package private)  int getId()
           
static LocalSocketAddress.Namespace valueOf(String name)
          Returns the enum constant of this type with the specified name.
static LocalSocketAddress.Namespace[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

ABSTRACT

public static final LocalSocketAddress.Namespace ABSTRACT
A socket in the Linux abstract namespace


RESERVED

public static final LocalSocketAddress.Namespace RESERVED
A socket in the Android reserved namespace in /dev/socket. Only the init process may create a socket here.


FILESYSTEM

public static final LocalSocketAddress.Namespace FILESYSTEM
A socket named with a normal filesystem path.

Method Detail

values

public static LocalSocketAddress.Namespace[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (LocalSocketAddress.Namespace c : LocalSocketAddress.Namespace.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static LocalSocketAddress.Namespace valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null

getId

int getId()
Returns:
int constant shared with native code

Build 1.0_r1(from source)

Please submit a feedback, bug or feature