net.sf.uadetector.parser
Class UserAgentStringParserImpl<T extends DataStore>

java.lang.Object
  extended by net.sf.uadetector.parser.AbstractUserAgentStringParser
      extended by net.sf.uadetector.parser.UserAgentStringParserImpl<T>
All Implemented Interfaces:
UserAgentStringParser
Direct Known Subclasses:
UpdatingUserAgentStringParserImpl

public class UserAgentStringParserImpl<T extends DataStore>
extends AbstractUserAgentStringParser

This parser is an implementation of UserAgentStringParser interface and can detect user agents. The analysis is based on the read Data of the given data source.

Author:
André Rouél

Constructor Summary
UserAgentStringParserImpl(T store)
          Constructs an UserAgentStringParser using the given UAS data as detection source.
 
Method Summary
protected  T getDataStore()
          Gets the data store of this parser.
 
Methods inherited from class net.sf.uadetector.parser.AbstractUserAgentStringParser
getDataVersion, parse, shutdown
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UserAgentStringParserImpl

public UserAgentStringParserImpl(@Nonnull
                                 T store)
Constructs an UserAgentStringParser using the given UAS data as detection source.

Parameters:
store - store for UAS data
Throws:
net.sf.qualitycheck.exception.IllegalNullArgumentException - if the given argument is null
Method Detail

getDataStore

@Nonnull
protected T getDataStore()
Description copied from class: AbstractUserAgentStringParser
Gets the data store of this parser.

Specified by:
getDataStore in class AbstractUserAgentStringParser
Returns:
data store of this parser


Copyright © 2011-2014. All Rights Reserved.