public class Track2Data
extends java.lang.Object
Track2Data
class is used to decode the track 2 data into
fields specified by ISO/IEC 7813.Constructor and Description |
---|
Track2Data()
Creates an instance of
Track2Data . |
Track2Data(byte[] buffer)
Initializes the track 2 data from the byte array.
|
Track2Data(byte[] buffer,
int offset,
int byteCount)
Initializes the track 2 data from the byte array.
|
Track2Data(java.lang.String track2String)
Initializes the track 2 data from the string.
|
Modifier and Type | Method and Description |
---|---|
void |
fromByteArray(byte[] buffer)
Initializes the track 2 data from the byte array.
|
void |
fromByteArray(byte[] buffer,
int offset,
int byteCount)
Initializes the track 2 data from the byte array.
|
void |
fromString(java.lang.String track2String)
Initializes the track 2 data from the string.
|
java.lang.String |
getDiscretionaryData()
Gets the discretionary data.
|
java.lang.String |
getExpirationDate()
Gets the expiration date.
|
java.lang.String |
getPrimaryAccountNumber()
Gets the primary account number.
|
java.lang.String |
getServiceCode()
Gets the service code.
|
java.lang.String |
getTrack2String()
Gets the track 2 string.
|
public Track2Data()
Track2Data
.public Track2Data(byte[] buffer)
buffer
- the buffer.public Track2Data(byte[] buffer, int offset, int byteCount)
buffer
- the buffer.offset
- the offset.byteCount
- the number of bytes.public Track2Data(java.lang.String track2String)
track2String
- the track 2 string.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 void fromString(java.lang.String track2String)
track2String
- the track 2 string.public java.lang.String getTrack2String()
public java.lang.String getPrimaryAccountNumber()
public java.lang.String getExpirationDate()
public java.lang.String getServiceCode()
public java.lang.String getDiscretionaryData()
Copyright © 2013-2018, Advanced Card Systems Ltd. All rights reserved.