public class TrieExample extends Object implements Closeable
main assumes it is being run with a working directory at root of project or of this module.
| Constructor and Description |
|---|
TrieExample() |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
boolean |
isItMobile(String userAgent)
Illustrates the basic process of detecting a device and retrieving a
property for Trie provider.
|
static void |
main(String[] args) |
public TrieExample()
throws IOException
IOExceptionpublic boolean isItMobile(String userAgent) throws Exception
userAgent - an HTTP User-Agent header valueException - if there was a problem accessing data file.public void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionCopyright © 2017 51Degrees. All rights reserved.