io.github.apkcloud.devicedetector.parser.device.Console 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.device;
import java.util.Map;
/**
* 用于检测游戏机的设备解析器
*/
public class Console extends AbstractDeviceParser {
protected String fixtureFile = "regexes/device/consoles.yml";
protected String parserName = "console";
/**
* {@inheritDoc}
*/
public Map parse() throws Exception {
if (isNullOrEmpty(preMatchOverall(fixtureFile))) {
return null;
}
return super.parse(fixtureFile);
}
@Override
public String getName() {
return parserName;
}
}