io.github.apkcloud.devicedetector.parser.bot.AbstractBotParser Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of DeviceDetector Show documentation
Show all versions of DeviceDetector Show documentation
通用设备检测库将解析任何UserAgent并检测浏览器、操作系统、使用的设备(桌面、平板、移动、电视、车载、游戏机等等)、品牌和型号。
package io.github.apkcloud.devicedetector.parser.bot;
import io.github.apkcloud.devicedetector.entity.Bot;
import io.github.apkcloud.devicedetector.parser.AbstractParser;
/**
* 所有机器人解析器的抽象类
*/
public abstract class AbstractBotParser extends AbstractParser {
/**
* 启用信息忽略
*/
abstract public void discardDetails();
/**
* 解析当前设置的 UserAgent 并返回可能的结果
*/
public abstract Bot parse() throws Exception;
}