public class Browser extends Object implements Serializable, Comparable<Browser>
| Modifier and Type | Field and Description |
|---|---|
static Map<String,Browser> |
browsers |
BrowserCategory |
category |
static Browser |
UNKNOWN |
String |
version |
| Constructor and Description |
|---|
Browser(BrowserCategory category,
String version) |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(Browser o) |
static Browser |
parse(String agentString)
Iterates over all Browsers to compare the browser signature with the user
agent string.
|
String |
toString() |
public static final Browser UNKNOWN
public final BrowserCategory category
public final String version
public Browser(BrowserCategory category, String version)
public static Browser parse(String agentString)
agentString - public int compareTo(Browser o)
compareTo in interface Comparable<Browser>Copyright © 2005–2018 The Beangle Software. All rights reserved.