|
||||||||
フレームあり フレームなし | ||||||||
概要: 内部クラス | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
java.lang.Object | +--com.kddi.camera.BarcodeContent
カメラで撮影したバーコードの解読データを保持するクラスです。
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 |
フィールドの詳細 |
public static final int BINARY
public static final int STRING
コンストラクタの詳細 |
public BarcodeContent(int type, byte[] data)
type
- コード種別data
- バイナリ形式の解読データpublic BarcodeContent(int type, java.lang.String data)
type
- コード種別data
- 文字列形式の解読データメソッドの詳細 |
public byte[] getBytes()
public java.lang.String getString()
public int getDataType()
BINARY
または
STRING
を返すpublic int getCodeType()
BarcodeConnection.JAN
または BarcodeConnection.QR
を返す
|
||||||||
フレームあり フレームなし | ||||||||
概要: 内部クラス | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |