-
public class DecodeFormatManager解码格式管理器
<p> 将常见的一些解码配置已根据条形码类型进行了几大划分,可根据需要找到符合的划分配置类型直接使用。
-
-
Field Summary
Fields Modifier and Type Field Description public final Map<DecodeHintType, Object>ALL_HINTSpublic final Map<DecodeHintType, Object>CODE_128_HINTSpublic final Map<DecodeHintType, Object>QR_CODE_HINTSpublic final Map<DecodeHintType, Object>ONE_DIMENSIONAL_HINTSpublic final Map<DecodeHintType, Object>TWO_DIMENSIONAL_HINTSpublic final Map<DecodeHintType, Object>DEFAULT_HINTSpublic final static DecodeFormatManagerINSTANCE
-
Method Summary
Modifier and Type Method Description final static Map<DecodeHintType, Object>createDecodeHints(BarcodeFormat barcodeFormats)创建支持指定格式集合的解码配置。 final static Map<DecodeHintType, Object>createDecodeHint(BarcodeFormat barcodeFormat)创建支持单一格式的解码配置。 final Map<DecodeHintType, Object>getALL_HINTS()所有支持的条码类型配置。 final Map<DecodeHintType, Object>getCODE_128_HINTS()CODE_128(常用一维码)解码配置。final Map<DecodeHintType, Object>getQR_CODE_HINTS()QR_CODE(常用二维码)解码配置。final Map<DecodeHintType, Object>getONE_DIMENSIONAL_HINTS()一维码解码配置。 final Map<DecodeHintType, Object>getTWO_DIMENSIONAL_HINTS()二维码解码配置。 final Map<DecodeHintType, Object>getDEFAULT_HINTS()默认解码配置。 -
-
Method Detail
-
createDecodeHints
final static Map<DecodeHintType, Object> createDecodeHints(BarcodeFormat barcodeFormats)
创建支持指定格式集合的解码配置。
- Parameters:
barcodeFormats- 需要支持的 BarcodeFormat。
-
createDecodeHint
final static Map<DecodeHintType, Object> createDecodeHint(BarcodeFormat barcodeFormat)
创建支持单一格式的解码配置。
- Parameters:
barcodeFormat- 需要支持的 BarcodeFormat。
-
getALL_HINTS
final Map<DecodeHintType, Object> getALL_HINTS()
所有支持的条码类型配置。
-
getCODE_128_HINTS
final Map<DecodeHintType, Object> getCODE_128_HINTS()
CODE_128(常用一维码)解码配置。
-
getQR_CODE_HINTS
final Map<DecodeHintType, Object> getQR_CODE_HINTS()
QR_CODE(常用二维码)解码配置。
-
getONE_DIMENSIONAL_HINTS
final Map<DecodeHintType, Object> getONE_DIMENSIONAL_HINTS()
一维码解码配置。
-
getTWO_DIMENSIONAL_HINTS
final Map<DecodeHintType, Object> getTWO_DIMENSIONAL_HINTS()
二维码解码配置。
-
getDEFAULT_HINTS
final Map<DecodeHintType, Object> getDEFAULT_HINTS()
默认解码配置。
-
-
-
-