A B C D F G H I L M N O P R S T U V W 

A

AllProfiles - Class in fiftyone.device.example.illustration
Example of using 51Degrees Pattern Detection to output a CSV file containing the properties of all hardware devices in the data set being used.
AllProfiles() - Constructor for class fiftyone.device.example.illustration.AllProfiles
Initialises the device detection Provider with the included Lite data file.

B

BASE_DIRECTORY - Static variable in class fiftyone.device.example.Shared
Assumes working directory is of this module.

C

close() - Method in class fiftyone.device.example.illustration.AllProfiles
Closes the Dataset by releasing data file readers and freeing the data file from locks.
close() - Method in class fiftyone.device.example.illustration.DynamicFilters
Closes the Dataset by releasing data file readers and freeing the data file from locks.
close() - Method in class fiftyone.device.example.illustration.FindProfiles
Closes the Dataset by releasing data file readers and freeing the data file from locks.
close() - Method in class fiftyone.device.example.illustration.GettingStarted
Closes the Dataset by releasing data file readers and freeing the data file from locks.
close() - Method in class fiftyone.device.example.illustration.MatchForDeviceId
Closes the Dataset by releasing data file readers and freeing the data file from locks.
close() - Method in class fiftyone.device.example.illustration.MatchMetrics
Closes the Dataset by releasing data file readers and freeing the data file from locks.
close() - Method in class fiftyone.device.example.illustration.MetadataExample
Don't forget to close datasets when you are done with them.
close() - Method in class fiftyone.device.example.illustration.OfflineProcessingExample
Closes the Dataset by releasing data file readers and freeing the data file from locks.
close() - Method in class fiftyone.device.example.illustration.StronglyTypedValues
Closes the Dataset by releasing data file readers and freeing the data file from locks.
close() - Method in class fiftyone.device.example.illustration.TrieExample
 
Controller - Class in fiftyone.device.example.batch
Demonstration of 51Degrees detection, with benchmarking outputs.
Controller() - Constructor for class fiftyone.device.example.batch.Controller
 
Controller.Mode - Enum in fiftyone.device.example.batch
 
count - Variable in class fiftyone.device.example.batch.UaProcessor.Base
 

D

dataset - Variable in class fiftyone.device.example.illustration.DynamicFilters
 
desktopUserAgent - Variable in class fiftyone.device.example.illustration.GettingStarted
 
desktopUserAgent - Variable in class fiftyone.device.example.illustration.MatchMetrics
 
desktopUserAgent - Variable in class fiftyone.device.example.illustration.StronglyTypedValues
 
detect(String) - Method in class fiftyone.device.example.illustration.GettingStarted
Matches provided User-Agent string and returns IsMobile property value.
DynamicFilters - Class in fiftyone.device.example.illustration
Example of filtering signatures to obtain a subset based on one or more property : value condition.
DynamicFilters() - Constructor for class fiftyone.device.example.illustration.DynamicFilters
Creates a new Dataset using memory factory which loads a memory-resident representation of data.

F

fiftyone.device.example - package fiftyone.device.example
Various examples of how to use the various aspects of the 51Degrees APIs
fiftyone.device.example.batch - package fiftyone.device.example.batch
 
fiftyone.device.example.illustration - package fiftyone.device.example.illustration
 
filterBy(String, String, ArrayList<Signature>) - Method in class fiftyone.device.example.illustration.DynamicFilters
Filters the provided set of signatures to only return those, where the specified property is equal to the specified value.
FindProfiles - Class in fiftyone.device.example.illustration
 
FindProfiles() - Constructor for class fiftyone.device.example.illustration.FindProfiles
Initialises the device detection Provider with the included Lite data file.
FutureUaProcessor - Class in fiftyone.device.example.batch
Implementation of UaProcessor that uses ExecutorCompletionService to do detections.
FutureUaProcessor(BufferedReader, Provider, int, int) - Constructor for class fiftyone.device.example.batch.FutureUaProcessor
 

G

getCpuTime() - Static method in class fiftyone.device.example.batch.FutureUaProcessor
Get CPU time in nanoseconds.
getDeviceId(Match) - Method in class fiftyone.device.example.illustration.MatchMetrics
Device ID is a string of four numeric components separated by hyphen.
getDifference(Match) - Method in class fiftyone.device.example.illustration.MatchMetrics
Extract the difference value from the Match object provided.
getGoodUserAgentsFile() - Static method in class fiftyone.device.example.Shared
get the name of the sample HTTP User-Agent file containing 20,000 HTTP User-Agent header values
getLitePatternV31() - Static method in class fiftyone.device.example.Shared
get the name of the V3.1 Pattern Detection file
getLitePatternV32() - Static method in class fiftyone.device.example.Shared
get the name of the V3.2 Pattern Detection file
getLiteTrieV30() - Static method in class fiftyone.device.example.Shared
get the name of the V3.0 Trie Detection file
getLiteTrieV32() - Static method in class fiftyone.device.example.Shared
get the name of the V3.2 Trie Detection file
getMethod(Match) - Method in class fiftyone.device.example.illustration.MatchMetrics
Extracts MatchMethods enumeration value from the Match object.
getRank(Match) - Method in class fiftyone.device.example.illustration.MatchMetrics
Extracts the signature rank from the Match object provided.
GettingStarted - Class in fiftyone.device.example.illustration
Getting started example of using 51Degrees device detection.
GettingStarted() - Constructor for class fiftyone.device.example.illustration.GettingStarted
Initialises the device detection Provider with the included Lite data file.
getValueForDisplay(Values) - Method in class fiftyone.device.example.illustration.AllProfiles
Match values may be null.
getValueForDisplay(Values) - Method in class fiftyone.device.example.illustration.OfflineProcessingExample
Match values may be null.
GOOD_USER_AGENTS_FILE - Static variable in class fiftyone.device.example.Shared
 

H

hardwareComponent - Variable in class fiftyone.device.example.illustration.AllProfiles
 
hardwareProfiles - Static variable in class fiftyone.device.example.illustration.AllProfiles
 
hardwareProperties - Static variable in class fiftyone.device.example.illustration.AllProfiles
 

I

isItMobile(String) - Method in class fiftyone.device.example.illustration.TrieExample
Illustrates the basic process of detecting a device and retrieving a property for Trie provider.
isMobile(String) - Method in class fiftyone.device.example.illustration.StronglyTypedValues
Matches provided User-Agent string and returns the IsMobile property value as boolean.
iterableToArrayList(Iterable<E>) - Static method in class fiftyone.device.example.illustration.DynamicFilters
Converts Iterable list of 51Degrees signatures to an ArrayList of signatures.

L

limit - Variable in class fiftyone.device.example.batch.UaProcessor.Base
 
listProperties() - Method in class fiftyone.device.example.illustration.MetadataExample
Lists all properties available in provided data file and all possible values for each property.
LITE_PATTERN_V31 - Static variable in class fiftyone.device.example.Shared
 
LITE_PATTERN_V32 - Static variable in class fiftyone.device.example.Shared
 
LITE_TRIE_V30 - Static variable in class fiftyone.device.example.Shared
 
LITE_TRIE_V32 - Static variable in class fiftyone.device.example.Shared
 

M

main(String[]) - Static method in class fiftyone.device.example.batch.Controller
 
main(String[]) - Static method in class fiftyone.device.example.illustration.AllProfiles
Instantiates this class and starts #processCsv(java.lang.String, java.lang.String) with default parameters.
main(String[]) - Static method in class fiftyone.device.example.illustration.DynamicFilters
Instantiates this class and launches the demo.
main(String[]) - Static method in class fiftyone.device.example.illustration.FindProfiles
Main entry point for this example.
main(String[]) - Static method in class fiftyone.device.example.illustration.GettingStarted
Main entry point for this example.
main(String[]) - Static method in class fiftyone.device.example.illustration.MatchForDeviceId
Performs a match of the pre-defined User-Agent to retrieve Id, then shows how to use the Id to get a Match object.
main(String[]) - Static method in class fiftyone.device.example.illustration.MatchMetrics
Main entry point for this example.
main(String[]) - Static method in class fiftyone.device.example.illustration.MetadataExample
 
main(String[]) - Static method in class fiftyone.device.example.illustration.OfflineProcessingExample
Instantiates this class and starts OfflineProcessingExample.processCsv(java.lang.String, java.lang.String) with default parameters.
main(String[]) - Static method in class fiftyone.device.example.illustration.StronglyTypedValues
Main entry point for this example.
main(String[]) - Static method in class fiftyone.device.example.illustration.TrieExample
 
MatchForDeviceId - Class in fiftyone.device.example.illustration
Example shows how to use an existing 51Degrees deviceId to obtain a Match object with relevant properties and values.
MatchForDeviceId() - Constructor for class fiftyone.device.example.illustration.MatchForDeviceId
Creates new provider object with the Stream dataset.
matchForDeviceIdArray(byte[]) - Method in class fiftyone.device.example.illustration.MatchForDeviceId
Returns a Match object corresponding to the provided byte array Id.
matchForDeviceIdList(ArrayList<Integer>) - Method in class fiftyone.device.example.illustration.MatchForDeviceId
Returns a Match object corresponding to the provided list of profile IDs.
matchForDeviceIdString(String) - Method in class fiftyone.device.example.illustration.MatchForDeviceId
Returns a Match object corresponding to the provided string deviceId.
matchForUserAgent(String) - Method in class fiftyone.device.example.illustration.MatchForDeviceId
Performs match for a User-Agent string and returns Match object with detection results.
MatchMetrics - Class in fiftyone.device.example.illustration
Getting started example of using 51Degrees device detection match metrics information.
MatchMetrics() - Constructor for class fiftyone.device.example.illustration.MatchMetrics
Initialises the device detection Provider with the included Lite data file.
mediaHubUserAgent - Variable in class fiftyone.device.example.illustration.GettingStarted
 
mediaHubUserAgent - Variable in class fiftyone.device.example.illustration.MatchMetrics
 
mediaHubUserAgent - Variable in class fiftyone.device.example.illustration.StronglyTypedValues
 
MetadataExample - Class in fiftyone.device.example.illustration
Example of listing properties and possible values from a Dataset
MetadataExample() - Constructor for class fiftyone.device.example.illustration.MetadataExample
Creates a new Dataset using memory factory which creates a memory-resident representation of data.
mobileUserAgent - Variable in class fiftyone.device.example.illustration.GettingStarted
 
mobileUserAgent - Variable in class fiftyone.device.example.illustration.MatchForDeviceId
 
mobileUserAgent - Variable in class fiftyone.device.example.illustration.MatchMetrics
 
mobileUserAgent - Variable in class fiftyone.device.example.illustration.StronglyTypedValues
 

N

numberOfThreads - Variable in class fiftyone.device.example.batch.UaProcessor.Base
 

O

OfflineProcessingExample - Class in fiftyone.device.example.illustration
Example of using 51Degrees Pattern Detection to process a file containing User-Agent header values and output a CSV file containing the same header values with various properties detected by 51Degrees.
OfflineProcessingExample() - Constructor for class fiftyone.device.example.illustration.OfflineProcessingExample
Initialises the device detection Provider with the included Lite data file.
outputFilePath - Variable in class fiftyone.device.example.illustration.AllProfiles
 
outputFilePath - Variable in class fiftyone.device.example.illustration.OfflineProcessingExample
 

P

printStats(PrintWriter) - Method in class fiftyone.device.example.batch.FutureUaProcessor
 
printStats(PrintWriter) - Method in class fiftyone.device.example.batch.UaProcessor.Base
 
printStats(PrintWriter) - Method in interface fiftyone.device.example.batch.UaProcessor
Writes timings (overall) of of a detection test
process() - Method in class fiftyone.device.example.batch.FutureUaProcessor
 
process() - Method in interface fiftyone.device.example.batch.UaProcessor
Process the set of UA Headers
processCsv(String, String) - Method in class fiftyone.device.example.illustration.OfflineProcessingExample
Reads a CSV file containing User-Agents and adds the IsMobile, PlatformName and PlatformVersion information for the first 20 lines.
provider - Variable in class fiftyone.device.example.batch.UaProcessor.Base
 
provider - Variable in class fiftyone.device.example.illustration.AllProfiles
 
provider - Variable in class fiftyone.device.example.illustration.FindProfiles
 
provider - Variable in class fiftyone.device.example.illustration.GettingStarted
 
provider - Variable in class fiftyone.device.example.illustration.MatchForDeviceId
 
provider - Variable in class fiftyone.device.example.illustration.MatchMetrics
 
provider - Variable in class fiftyone.device.example.illustration.StronglyTypedValues
 

R

run(String) - Method in class fiftyone.device.example.illustration.AllProfiles
Writes a CSV file with all properties of all hardware devices in the data set being used.
run() - Method in class fiftyone.device.example.illustration.DynamicFilters
Repeatedly calls the filter function and prints results.

S

Shared - Class in fiftyone.device.example
Contains various constants used in the examples and convenience methods for accessing example data files which accommodate the styles of various IDEs in starting programs with the module as the working directory or the root of the project as working directory.
Shared() - Constructor for class fiftyone.device.example.Shared
 
signatures - Variable in class fiftyone.device.example.illustration.DynamicFilters
 
start - Variable in class fiftyone.device.example.batch.UaProcessor.Base
 
stop - Variable in class fiftyone.device.example.batch.UaProcessor.Base
 
StronglyTypedValues - Class in fiftyone.device.example.illustration
Getting started example of using 51Degrees device detection.
StronglyTypedValues() - Constructor for class fiftyone.device.example.illustration.StronglyTypedValues
Initialises the device detection Provider with the included Lite data file.

T

TrieExample - Class in fiftyone.device.example.illustration
Example of creating a TrieProvider and using it to get a device property.
TrieExample() - Constructor for class fiftyone.device.example.illustration.TrieExample
 

U

UaProcessor - Interface in fiftyone.device.example.batch
Interface defines three phase processing of a set of User-Agent Header Values: Process the headers UaProcessor.process() Print statistics relating the the last run of UaProcessor.process() Write the detailed results of the last run of UaProcessor.process()
UaProcessor.Base - Class in fiftyone.device.example.batch
Base implementation of UaProcessor accepting a BufferedReader from which UA Strings can be read and a Provider to use to do detections
UaProcessor.Base(BufferedReader, Provider, int, int) - Constructor for class fiftyone.device.example.batch.UaProcessor.Base
 
useragents - Variable in class fiftyone.device.example.batch.UaProcessor.Base
 
USERAGENTS - Static variable in class fiftyone.device.example.Shared
A small collection of actual HTTP User-Agent header values for testing

V

valueOf(String) - Static method in enum fiftyone.device.example.batch.Controller.Mode
Returns the enum constant of this type with the specified name.
values() - Static method in enum fiftyone.device.example.batch.Controller.Mode
Returns an array containing the constants of this enum type, in the order they are declared.

W

writeHeaders(BufferedWriter) - Static method in class fiftyone.device.example.batch.UaProcessor.Base
Utility for descendants to write a set of headers relating to a match
writeMatch(BufferedWriter, String, long, Match) - Static method in class fiftyone.device.example.batch.UaProcessor.Base
Utility for descendants to write details relating to a match
writeResults(BufferedWriter) - Method in class fiftyone.device.example.batch.FutureUaProcessor
 
writeResults(BufferedWriter) - Method in interface fiftyone.device.example.batch.UaProcessor
Writes results (for each UA string) of detection test
A B C D F G H I L M N O P R S T U V W 

Copyright © 2016 51Degrees. All rights reserved.