
fiftyone.mobile.detection.Dataset Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of 51Degrees.detection.core Show documentation
Show all versions of 51Degrees.detection.core Show documentation
51Degrees core detection solution
The newest version!
package fiftyone.mobile.detection;
import java.io.IOException;
import java.util.Calendar;
import java.util.Date;
import java.util.ArrayList;
import java.util.List;
import java.util.concurrent.TimeUnit;
import fiftyone.mobile.detection.entities.AsciiString;
import fiftyone.mobile.detection.entities.Component;
import fiftyone.mobile.detection.entities.Guid;
import fiftyone.mobile.detection.entities.IntegerEntity;
import fiftyone.mobile.detection.entities.Map;
import fiftyone.mobile.detection.entities.Modes;
import fiftyone.mobile.detection.entities.Node;
import fiftyone.mobile.detection.entities.Profile;
import fiftyone.mobile.detection.entities.ProfileOffset;
import fiftyone.mobile.detection.entities.Property;
import fiftyone.mobile.detection.entities.Signature;
import fiftyone.mobile.detection.entities.Value;
import fiftyone.mobile.detection.entities.Version;
import fiftyone.mobile.detection.entities.memory.MemoryFixedList;
import fiftyone.mobile.detection.entities.memory.PropertiesList;
import fiftyone.mobile.detection.entities.stream.ICacheList;
import fiftyone.properties.DetectionConstants;
/* *********************************************************************
* This Source Code Form is copyright of 51Degrees Mobile Experts Limited.
* Copyright 2014 51Degrees Mobile Experts Limited, 5 Charlotte Close,
* Caversham, Reading, Berkshire, United Kingdom RG4 7BY
*
* This Source Code Form is the subject of the following patent
* applications, owned by 51Degrees Mobile Experts Limited of 5 Charlotte
* Close, Caversham, Reading, Berkshire, United Kingdom RG4 7BY:
* European Patent Application No. 13192291.6; and
* United States Patent Application Nos. 14/085,223 and 14/085,301.
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0.
*
* If a copy of the MPL was not distributed with this file, You can obtain
* one at http://mozilla.org/MPL/2.0/.
*
* This Source Code Form is "Incompatible With Secondary Licenses", as
* defined by the Mozilla Public License, v. 2.0.
* ********************************************************************* */
/**
* Data set used for device detection created by the reader classes.
*
* The Memory.Reader and Stream.Reader factories should be used to create
* detector data sets. They can not be constructed directly from external code.
*
* All information about the detector data set is exposed in this class
* including meta data and data used for device detection in the form of lists.
*
* Detector data sets created using the @see Stream#Reader factory using a
* file must be disposed of to ensure any readers associated with the file
* are closed elegantly.
*
* For more information see https://51degrees.com/Support/Documentation/Java
*/
public class Dataset implements IDisposable {
/**
* Age of the data in months when exported.
*/
public int age;
/**
* The browser component.
*/
private Component browsers;
/**
* A list of all the components the data set contains.
*/
public MemoryFixedList components;
/**
* The copyright notice associated with the data set.
*/
public String copyright;
/**
* The offset for the copyright notice associated with the data set.
*/
public int copyrightOffset;
/**
* The crawler component.
*/
private Component crawlers;
/**
* The number of bytes to allocate to a buffer returning CSV format data for
* a match.
*/
public int csvBufferLength;
/**
* The number of unique device combinations available in the data set.
*/
public int deviceCombinations;
/**
* A unique Tag for the exported data.
*/
public Guid export;
/**
* Flag to indicate if the dataset is disposed.
*/
private boolean disposed;
/**
* The name of the property map used to create the dataset.
*/
public String format;
/**
* The offset for the name of the property map used to create the dataset.
*/
public int formatOffset;
/**
* The hardware component.
*/
private Component hardware;
/**
* The highest character the character trees can contain.
*/
public byte highestCharacter;
/**
* List of unique HTTP Headers that the data set needs to consider to
* perform the most accurate matches.
*/
private String[] httpHeaders;
/**
* The number of bytes to allocate to a buffer returning JSON format data
* for a match.
*/
public int jsonBufferLength;
/**
* When the data was last modified.
*/
public Calendar lastModified;
/**
* The lowest character the character trees can contain.
*/
public byte lowestCharacter;
/**
* A list of all the maps the data set contains.
*/
public MemoryFixedList
© 2015 - 2025 Weber Informatics LLC | Privacy Policy