public class UserAgentService extends Object
| Modifier and Type | Field and Description |
|---|---|
static int |
BUNDLED_BROWSCAP_VERSION |
| Constructor and Description |
|---|
UserAgentService() |
UserAgentService(String zipFilePath)
Creates a user agent service based on the Browscap CSV file in the given ZIP file
|
| Modifier and Type | Method and Description |
|---|---|
UserAgentParser |
loadParser()
Returns a parser based on the bundled BrowsCap version
|
public static final int BUNDLED_BROWSCAP_VERSION
public UserAgentService()
public UserAgentService(String zipFilePath)
zipFilePath - the zip file should contain the csv file. It will load the given zip file instead of the
bundled onepublic UserAgentParser loadParser() throws IOException, ParseException
IOExceptionParseExceptionCopyright © 2017. All rights reserved.