fiftyone.device.example.illustration
Class DeviceIds

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

public class DeviceIds
extends Object
implements Closeable


Field Summary
protected static IReadonlyList<Property> allProperties
           
protected  Component hardwareComponent
           
protected static Profile[] hardwareProfiles
           
protected static Property[] hardwareProperties
           
 String outputFilePath
           
 String premiumDataFile
           
protected  Provider provider
           
 
Constructor Summary
DeviceIds()
           
 
Method Summary
 void close()
          Closes the Dataset by releasing data file readers and freeing the data file from locks.
protected  String getValueForDisplay(Values values)
          Match values may be null.
static void main(String[] args)
          Instantiates this class and starts #processCsv(java.lang.String, java.lang.String) with default parameters.
 Match matchForDeviceIdString(String deviceId)
          Returns a Match object corresponding to the provided string deviceId.
 void run(String outputFilename)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

outputFilePath

public String outputFilePath

premiumDataFile

public String premiumDataFile

provider

protected final Provider provider

allProperties

protected static IReadonlyList<Property> allProperties

hardwareComponent

protected final Component hardwareComponent

hardwareProfiles

protected static Profile[] hardwareProfiles

hardwareProperties

protected static Property[] hardwareProperties
Constructor Detail

DeviceIds

public DeviceIds()
          throws IOException
Throws:
IOException
Method Detail

run

public void run(String outputFilename)
         throws IOException
Throws:
IOException

getValueForDisplay

protected String getValueForDisplay(Values values)
Match values may be null. A helper method to get something displayable

Parameters:
values - a Values to render
Returns:
a non-null String

matchForDeviceIdString

public Match matchForDeviceIdString(String deviceId)
                             throws IOException
Returns a Match object corresponding to the provided string deviceId. String deviceId derived by: match.getDeviceId();

Parameters:
deviceId - String representation of the deviceId.
Returns:
Match object with detection results.
Throws:
IOException - if there was a problem accessing the data file.

main

public static void main(String[] args)
                 throws IOException
Instantiates this class and starts #processCsv(java.lang.String, java.lang.String) with default parameters.

Parameters:
args - command line arguments.
Throws:
IOException - if there was a problem accessing the data file.

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.