|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjnr.netdb.Protocol
public final class Protocol
An entry in the system protocol database
Method Summary | |
---|---|
java.util.Collection<java.lang.String> |
getAliases()
Returns a list of aliases this Protocol is also known by. |
java.lang.String |
getName()
Returns the official IANA name of this Protocol |
int |
getProto()
Returns the official IANA protocol number for this Protocol |
static Protocol |
getProtocolByName(java.lang.String name)
Locates a protocol by name. |
static Protocol |
getProtocolByNumber(int proto)
Locates a protocol by number. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
public static final Protocol getProtocolByName(java.lang.String name)
name
- the official IANA name for the protocol, or an alias.
Protocol
instance, or null
if the protocol could not be found.public static final Protocol getProtocolByNumber(int proto)
proto
- the internet protocol number of the protocol.
Protocol
instance, or null
if the protocol could not be found.public final java.lang.String getName()
Protocol
Protocol
as a String
public final int getProto()
Protocol
Protocol
as an int
public final java.util.Collection<java.lang.String> getAliases()
Protocol
is also known by.
Collection
of Strings for aliases this Protocol
public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |