public abstract static class UaProcessor.Base extends Object implements UaProcessor
UaProcessor accepting a BufferedReader from which UA Strings can be read
and a Provider to use to do detectionsUaProcessor.Base| Modifier and Type | Field and Description |
|---|---|
protected int |
count |
protected int |
limit |
protected int |
numberOfThreads |
protected Provider |
provider |
protected long |
start |
protected long |
stop |
protected BufferedReader |
useragents |
| Constructor and Description |
|---|
UaProcessor.Base(BufferedReader useragents,
Provider provider,
int numberOfThreads,
int limit) |
| Modifier and Type | Method and Description |
|---|---|
void |
printStats(PrintWriter output)
Writes timings (overall) of of a detection test
|
protected static void |
writeHeaders(BufferedWriter writer)
Utility for descendants to write a set of headers relating to a match
|
protected static void |
writeMatch(BufferedWriter writer,
String s,
long time,
Match match)
Utility for descendants to write details relating to a match
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitprocess, writeResultsprotected final int limit
protected final int numberOfThreads
protected final BufferedReader useragents
protected final Provider provider
protected int count
protected long start
protected long stop
public UaProcessor.Base(BufferedReader useragents, Provider provider, int numberOfThreads, int limit) throws IOException
IOExceptionpublic void printStats(PrintWriter output)
UaProcessorprintStats in interface UaProcessoroutput - a PrintWriter to report the timings onprotected static void writeHeaders(BufferedWriter writer) throws IOException
writer - a writer to write toIOException - if there was a problem accessing data file.protected static void writeMatch(BufferedWriter writer, String s, long time, Match match) throws IOException
writer - a writer to write tos - string to write.time - timestamp.match - Match object with results.IOException - if there was a problem accessing data file.Copyright © 2015 51Degrees. All rights reserved.