public class Result
extends java.lang.Object
Result
class represents the execution result after
performing the operation from the reader.Modifier and Type | Field and Description |
---|---|
static int |
ERROR_DUKPT_DATA_CORRUPTED
DUKPT data is corrupted.
|
static int |
ERROR_DUKPT_OPERATION_CEASED
DUKPT operation is ceased.
|
static int |
ERROR_FLASH_DATA_CORRUPTED
Flash data is corrupted.
|
static int |
ERROR_INVALID_CHECKSUM
Invalid checksum.
|
static int |
ERROR_INVALID_COMMAND
Invalid command.
|
static int |
ERROR_INVALID_PARAMETER
Invalid parameter.
|
static int |
ERROR_INVALID_START_BYTE
Invalid start byte.
|
static int |
ERROR_PICC_NO_CARD
No card in PICC slot.
|
static int |
ERROR_SUCCESS
Success.
|
static int |
ERROR_UNKNOWN
Unknown error.
|
static int |
ERROR_VERIFICATION_FAILED
Verification is failed.
|
Constructor and Description |
---|
Result()
Creates an instance of
Result . |
Result(byte[] buffer)
Initializes the result from the byte array.
|
Result(byte[] buffer,
int offset,
int byteCount)
Initializes the result from the byte array.
|
Modifier and Type | Method and Description |
---|---|
void |
fromByteArray(byte[] buffer)
Initializes the result from the byte array.
|
void |
fromByteArray(byte[] buffer,
int offset,
int byteCount)
Initializes the result from the byte array.
|
int |
getErrorCode()
Gets the error code.
|
public static final int ERROR_SUCCESS
public static final int ERROR_INVALID_COMMAND
public static final int ERROR_INVALID_PARAMETER
public static final int ERROR_INVALID_CHECKSUM
public static final int ERROR_INVALID_START_BYTE
public static final int ERROR_UNKNOWN
public static final int ERROR_DUKPT_OPERATION_CEASED
public static final int ERROR_DUKPT_DATA_CORRUPTED
public static final int ERROR_FLASH_DATA_CORRUPTED
public static final int ERROR_VERIFICATION_FAILED
public static final int ERROR_PICC_NO_CARD
public Result()
Result
.public Result(byte[] buffer)
buffer
- the buffer.public Result(byte[] buffer, int offset, int byteCount)
buffer
- the buffer.offset
- the offset.byteCount
- the number of bytes.public void fromByteArray(byte[] buffer)
buffer
- the buffer.public void fromByteArray(byte[] buffer, int offset, int byteCount)
buffer
- the buffer.offset
- the offset.byteCount
- the number of bytes.public int getErrorCode()
Copyright © 2013-2018, Advanced Card Systems Ltd. All rights reserved.