001/* 002 * =========================================================================================== 003 * = COPYRIGHT 004 * PAX Computer Technology (Shenzhen) Co., Ltd. PROPRIETARY INFORMATION 005 * This software is supplied under the terms of a license agreement or nondisclosure 006 * agreement with PAX Computer Technology (Shenzhen) Co., Ltd. and may not be copied or 007 * disclosed except in accordance with the terms in that agreement. 008 * Copyright (C) 2017-2023 PAX Computer Technology (Shenzhen) Co., Ltd. All rights reserved. 009 * Description: // Detail description about the function of this module, 010 * // interfaces with the other modules, and dependencies. 011 * Revision History: 012 * Date Author Action 013 * 2017/04/01 PAX Create/Add/Modify/Delete 014 * =========================================================================================== 015 */ 016 017package com.pax.dal.entity; 018 019/** 020 * <div class="zh">未经编码转换的扫描结果。</div> <div class="en">Scan results without encoding conversion.</div> 021 */ 022public class ScanResultRaw { 023 024 private byte[] content; 025 private String format; 026 027 public ScanResultRaw(byte[] content, String format) { 028 this.content = content; 029 this.format = format; 030 } 031 032 /** 033 * <div class="zh">获取未经编码转换的原始数据。</div> <div class="en">Get the raw data without encoding conversion.</div> 034 * 035 * @return <div class="zh">未经编码转换的原始数据。</div> <div class="en">Raw data without encoding conversion.</div> 036 */ 037 public byte[] getContent() { 038 return content; 039 } 040 041 /** 042 * <div class="zh">获取条形码格式。</div> <div class="en">Get the barcode format.</div> 043 * 044 * @return <div class="zh">如果成功则返回如下条形码格式,失败则返回空字符串 <br> 045 * 返回的条码类型: "UPC-A", "C39", "C128", "I25", "C93", "GS1 DATABAR", "MSI", 046 * "CODEBLOCK F", "PDF417", "MICROPDF", "MAXICODE", "QR CODE", "TELEPEN", 047 * "DATA MATRIX", "AZTEC", "HAXIN", "MATRIX 25", "TRIOPTIC", "STRAIGHT 25", 048 * "C11", "NEC25", "CodaBar", "HK25", "Postal", "UPC-E", "EAN-13", "EAN-8"</div> 049 * <div class="en">Returns the barcode format on success, or an empty string on failure<br> 050 * Returned barcode types: "UPC-A", "C39", "C128", "I25", "C93", "GS1 DATABAR", "MSI", 051 * "CODEBLOCK F", "PDF417", "MICROPDF", "MAXICODE", "QR CODE", "TELEPEN", 052 * "DATA MATRIX", "AZTEC", "HAXIN", "MATRIX 25", "TRIOPTIC", "STRAIGHT 25", 053 * "C11", "NEC25", "CodaBar", "HK25", "Postal", "UPC-E", "EAN-13", "EAN-8"</div> 054 */ 055 public String getFormat() { 056 return format; 057 } 058}