com.kddi.camera
クラス BarcodeContent <Phase3>

java.lang.Object
  |
  +--com.kddi.camera.BarcodeContent

public class BarcodeContent
extends java.lang.Object

カメラで撮影したバーコードの解読データを保持するクラスです。

BarcodeContent インスタンスは、 BarcodeConnection インタフェースの capture() メソッドで作成するか、またはコンストラクタで生成します。


フィールドの概要
static int BINARY
          解読データのデータ種別がバイナリであることを示します。
static int STRING
          解読データのデータ種別が文字列であることを示します。
 
コンストラクタの概要
BarcodeContent(int type, byte[] data)
          BarcodeContent インスタンスをバイナリデータにより生成します。
BarcodeContent(int type, java.lang.String data)
          BarcodeContent インスタンスを文字列データにより生成します。
 
メソッドの概要
 byte[] getBytes()
          バイナリ形式の解読データを返します。
 int getCodeType()
          解読データのコード種別を返します。
 int getDataType()
          解読データのデータ種別を返します。
 java.lang.String getString()
          文字列形式の解読データを返します。
 
クラス java.lang.Object から継承したメソッド
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

フィールドの詳細

BINARY

public static final int BINARY
解読データのデータ種別がバイナリであることを示します。

STRING

public static final int STRING
解読データのデータ種別が文字列であることを示します。
コンストラクタの詳細

BarcodeContent

public BarcodeContent(int type,
                      byte[] data)
BarcodeContent インスタンスをバイナリデータにより生成します。
パラメータ:
type - コード種別
data - バイナリ形式の解読データ

BarcodeContent

public BarcodeContent(int type,
                      java.lang.String data)
BarcodeContent インスタンスを文字列データにより生成します。
パラメータ:
type - コード種別
data - 文字列形式の解読データ
メソッドの詳細

getBytes

public byte[] getBytes()
バイナリ形式の解読データを返します。
戻り値:
解読したデータ。 解読データのデータ種別がバイナリ以外の場合はnullを返す。

getString

public java.lang.String getString()
文字列形式の解読データを返します。
戻り値:
解読したデータ 解読データのデータ種別が文字列以外の場合はnullを返す。

getDataType

public int getDataType()
解読データのデータ種別を返します。
戻り値:
データ種別として BINARY または STRING を返す

getCodeType

public int getCodeType()
解読データのコード種別を返します。
戻り値:
コード種別として BarcodeConnection.JAN または BarcodeConnection.QR を返す


Copyright 2003 Aplix Corporation. All rights reserved. Aplix Confidential and Restricted.