\r\n

51Degrees Device Detection Java  4.4

Device detection services for 51Degrees Pipeline

fiftyone.devicedetection.examples.shared.EvidenceHelper Class Reference

Static Public Member Functions

static List< Map< String, String > >  setUpEvidence ()
Prepare evidence for use in examples.
static List< Map< String, String > >  getEvidenceList (File yamlFile, int max) throws IOException
Load a Yaml file as a list of documents (each being a Map containing evidence) More...
static Iterable< Map< String, String > >  getEvidenceIterable (File yamlFile) throws IOException
Create an Iterable<Map<String, String>> for reading documents from the passed yamlFile. More...

Member Function Documentation

◆ getEvidenceIterable()

static Iterable<Map<String, String> > fiftyone.devicedetection.examples.shared.EvidenceHelper.getEvidenceIterable ( File   yamlFile ) throws IOException
static

Create an Iterable<Map<String, String>> for reading documents from the passed yamlFile.

Parameters
yamlFile - a yamlFile
Returns
an Iterable
Exceptions
IOException - for file errors

◆ getEvidenceList()

static List<Map<String, String> > fiftyone.devicedetection.examples.shared.EvidenceHelper.getEvidenceList ( File   yamlFile,
int   max  
) throws IOException
static

Load a Yaml file as a list of documents (each being a Map containing evidence)

Parameters
yamlFile - a yaml file
max - maximum entries
Returns
a List
Exceptions
IOException - in case of error