fiftyone.device.example.illustration
Class FindProfiles

java.lang.Object
  extended by fiftyone.device.example.illustration.FindProfiles
All Implemented Interfaces:
Closeable

public class FindProfiles
extends Object
implements Closeable


Field Summary
protected  Provider provider
           
 
Constructor Summary
FindProfiles()
          Initialises the device detection Provider with the included Lite data file.
 
Method Summary
 void close()
          Closes the Dataset by releasing data file readers and freeing the data file from locks.
static void main(String[] args)
          Main entry point for this example.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

provider

protected final Provider provider
Constructor Detail

FindProfiles

public FindProfiles()
             throws IOException
Initialises the device detection Provider with the included Lite data file. For more data see: compare data options

Throws:
IOException - can be thrown if there is a problem reading from the provided data file.
Method Detail

main

public static void main(String[] args)
                 throws IOException
Main entry point for this example. For the value "IsMobile is True and False:
  1. invokes Provider.DataSet.FindProfiles(java.lang.String, java.lang.String, List<Profile>). Profiles are then stored in the Profile list and can be accessed using the profiles.get(int index) method.
  2. prints results.

Parameters:
args - command line arguments, not used.
Throws:
IOException - if there is a problem accessing the data file that will be used for device detection.

close

public void close()
           throws IOException
Closes the Dataset by releasing data file readers and freeing the data file from locks. This method should only be used when the Dataset is no longer required, i.e. when device detection functionality is no longer required, or the data file needs to be freed.

Specified by:
close in interface Closeable
Throws:
IOException - if there is a problem accessing the data file.


Copyright © 2017 51Degrees. All rights reserved.