fiftyone.device.example.batch
Interface UaProcessor

All Known Implementing Classes:
FutureUaProcessor, UaProcessor.Base

public interface UaProcessor

Interface defines three phase processing of a set of User-Agent Header Values:


Nested Class Summary
static class UaProcessor.Base
          Base implementation of UaProcessor accepting a BufferedReader from which UA Strings can be read and a Provider to use to do detections
 
Method Summary
 void printStats(PrintWriter output)
          Writes timings (overall) of of a detection test
 void process()
          Process the set of UA Headers
 void writeResults(BufferedWriter writer)
          Writes results (for each UA string) of detection test
 

Method Detail

process

void process()
             throws Exception
Process the set of UA Headers

Throws:
Exception - if there was a problem accessing data file.

printStats

void printStats(PrintWriter output)
Writes timings (overall) of of a detection test

Parameters:
output - a PrintWriter to report the timings on

writeResults

void writeResults(BufferedWriter writer)
                  throws IOException
Writes results (for each UA string) of detection test

Parameters:
writer - a BufferedWriter to write the results to
Throws:
IOException - if there was a problem accessing data file.


Copyright © 2017 51Degrees. All rights reserved.