|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfiftyone.mobile.detection.entities.BaseEntity
fiftyone.mobile.detection.entities.Signature
public class Signature
The relevant characters from a user agent structured in a manner to enable rapid comparison with a target user agent.
| Field Summary | |
|---|---|
private int |
_length
|
private String |
deviceId
|
int[] |
nodeOffsets
List of the node indexes the signature relates to ordered by index of the node. |
private int[] |
profileOffsets
|
private Profile[] |
profiles
|
private String |
stringValue
|
private Value[] |
values
|
| Constructor Summary | |
|---|---|
Signature(Dataset dataSet,
int index,
BinaryReader reader)
Constructs a new instance of Signature |
|
| Method Summary | |
|---|---|
int |
compareTo(List<Node> nodes)
Compares this signature to a list of node offsets. |
int |
compareTo(Signature other)
Compares this signature to another based on the node offsets. |
String |
getDeviceId()
The unique Device Id for the signature. |
int |
getLength()
The length in bytes of the signature. |
Profile[] |
getProfiles()
List of the profiles the signature relates to. |
private Profile[] |
getProfiles(int[] profileIndexes)
Returns an array of profiles associated with the signature. |
SortedList<String,List<String>> |
getPropertyValuesAsStrings()
Gets a string list of the properties and names. |
private int |
getSignatureLength()
|
Value[] |
getValues()
|
void |
init()
Called after the entire data set has been loaded to ensure any further initialisation steps that require other items in the data set can be completed. |
private String |
initGetDeviceId()
|
private Value[] |
initGetValues()
Returns an array of values associated with the signature. |
private int[] |
ReadOffsets(Dataset dataSet,
BinaryReader reader,
int length)
Uses the offsets list which must be locked to read in the arrays of nodes or profiles that relate to the signature. |
String |
toString()
String representation of the signature where irrelevant characters are removed. |
| Methods inherited from class fiftyone.mobile.detection.entities.BaseEntity |
|---|
binarySearch, getDataSet, getIndex, readIntegerArray |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public final int[] nodeOffsets
private int[] profileOffsets
private Profile[] profiles
private String deviceId
private Value[] values
private int _length
private String stringValue
| Constructor Detail |
|---|
public Signature(Dataset dataSet,
int index,
BinaryReader reader)
dataSet - The data set the node is contained withinindex - The index in the data structure to the nodereader - Reader connected to the source data structure and
positioned to start reading| Method Detail |
|---|
public Profile[] getProfiles()
throws IOException
IOException
public String getDeviceId()
throws IOException
IOException
public Value[] getValues()
throws IOException
IOException
public int getLength()
throws IOException
IOException
private int getSignatureLength()
throws IOException
IOException
private int[] ReadOffsets(Dataset dataSet,
BinaryReader reader,
int length)
dataSet - The data set the node is contained withinreader - Reader connected to the source data structure and
positioned to start readinglength - The number of offsets to read in
public void init()
throws IOException
IOException
private String initGetDeviceId()
throws IOException
IOException
public SortedList<String,List<String>> getPropertyValuesAsStrings()
throws IOException
IOException
private Value[] initGetValues()
throws IOException
IOException
private Profile[] getProfiles(int[] profileIndexes)
throws IOException
profileIndexes -
IOExceptionpublic int compareTo(List<Node> nodes)
nodeOffsets - The node indexes to be compared against
public int compareTo(Signature other)
compareTo in interface Comparable<Signature>other - The signature to be compared against
public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||