|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | ||||||||
java.lang.Objectjava.lang.Enum<BrowserType>
nl.bitwalker.useragentutils.BrowserType
public enum BrowserType
Enum constants classifying the different types of browsers which are common in user-agent strings
| Enum Constant Summary | |
|---|---|
EMAIL_CLIENT
Email client like Thunderbird |
|
MOBILE_BROWSER
Special web-browser for mobile devices |
|
ROBOT
Search robot, spider, crawler,... |
|
TEXT_BROWSER
Text only browser like the good old Lynx |
|
TOOL
Downloading tools |
|
UNKNOWN
|
|
WEB_BROWSER
Standard web-browser |
|
| Method Summary | |
|---|---|
java.lang.String |
getName()
|
static BrowserType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static BrowserType[] |
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, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Enum Constant Detail |
|---|
public static final BrowserType WEB_BROWSER
public static final BrowserType MOBILE_BROWSER
public static final BrowserType TEXT_BROWSER
public static final BrowserType EMAIL_CLIENT
public static final BrowserType ROBOT
public static final BrowserType TOOL
public static final BrowserType UNKNOWN
| Method Detail |
|---|
public static BrowserType[] values()
for (BrowserType c : BrowserType.values()) System.out.println(c);
public static BrowserType valueOf(java.lang.String name)
name - the name of the enum constant to be returned.
java.lang.IllegalArgumentException - if this enum type has no constant
with the specified name
java.lang.NullPointerException - if the argument is nullpublic java.lang.String getName()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | ||||||||