51Degrees Device Detection Java  4.1

Device detection services for 51Degrees Pipeline
  • fiftyone
  • devicedetection
  • examples
  • hash
  • Benchmark

fiftyone.devicedetection.examples.hash.Benchmark Class Reference

Inheritance diagram for fiftyone.devicedetection.examples.hash.Benchmark:

[legend]

Collaboration diagram for fiftyone.devicedetection.examples.hash.Benchmark:

[legend]

Classes

class  Example

Public Member Functions

 Benchmark (String userAgentFile) throws IOException, IllegalArgumentException
Initialises the device detection Provider with the included Lite data file. More...

Static Public Member Functions

static void  main (String[] args) throws Exception
Instantiates this class and starts runBenchmarks(String, String, int) with parameters from the command line. More...

Static Protected Member Functions

static byte []  fileAsBytes (String deviceDataFile) throws IOException

Static Protected Member Functions inherited from fiftyone.devicedetection.examples.ProgramBase

static File  getDefaultFilePath (String searchPattern)
static File  getDefaultFilePath (FilenameFilter searchFilter)

Constructor & Destructor Documentation

◆ Benchmark()

fiftyone.devicedetection.examples.hash.Benchmark.Benchmark ( String   userAgentFile ) throws IOException, IllegalArgumentException

Initialises the device detection Provider with the included Lite data file.

For more data see: compare data options

Parameters
userAgentFile - path to the source User-Agents file.
Exceptions
IOException - if there was a problem reading from the data file.

Member Function Documentation

◆ main()

static void fiftyone.devicedetection.examples.hash.Benchmark.main ( String []   args ) throws Exception
static

Instantiates this class and starts runBenchmarks(String, String, int) with parameters from the command line.

Parameters
args - command line arguments.
Exceptions
IOException - if the data file cannot be accessed.
InterruptedException - if the benchmark threads are interrupted.