Package io.anyline.nfc.Tools
Class Tools
-
- All Implemented Interfaces:
public class Tools
-
-
Constructor Summary
Constructors Constructor Description Tools()
-
Method Summary
Modifier and Type Method Description Array<byte>
unpadData(Array<byte> data)
Array<byte>
doXor(Array<byte> input1, Array<byte> input2)
Array<byte>
adjustParityBits(Array<byte> input)
String
bytesToString(Array<byte> input)
Array<byte>
concatByteArrays(Array<byte> input1, Array<byte> input2)
Array<byte>
byteToBytes(byte input)
Array<byte>
incrementBytesArray(Array<byte> input, int index)
Array<byte>
incrementBytesArray(Array<byte> input)
Array<byte>
calculateAsn1Length(Array<byte> data)
int
getAsn1HeaderLength(Array<byte> asn1)
int
getIntFrom16bits(Array<byte> input)
int
getLengthFromAsn1(Array<byte> asn1)
int
getLengthFromFileHeader(Array<byte> fileHeader)
Array<byte>
calculate2bytesInt(int value)
int
calculateMrzCheckDigit(String input)
calculates checksum in accordance to the mrp standard http://www.highprogrammer.com/alan/numbers/mrp. Array<byte>
inputStreamToByteArray(InputStream inputStream)
Array<byte>
invertBytes(Array<byte> bytes)
In order to endian conversion -
-
Method Detail
-
adjustParityBits
Array<byte> adjustParityBits(Array<byte> input)
-
bytesToString
String bytesToString(Array<byte> input)
-
concatByteArrays
Array<byte> concatByteArrays(Array<byte> input1, Array<byte> input2)
-
byteToBytes
Array<byte> byteToBytes(byte input)
-
incrementBytesArray
Array<byte> incrementBytesArray(Array<byte> input, int index)
-
incrementBytesArray
Array<byte> incrementBytesArray(Array<byte> input)
-
calculateAsn1Length
Array<byte> calculateAsn1Length(Array<byte> data)
-
getAsn1HeaderLength
int getAsn1HeaderLength(Array<byte> asn1)
-
getIntFrom16bits
int getIntFrom16bits(Array<byte> input)
-
getLengthFromAsn1
int getLengthFromAsn1(Array<byte> asn1)
-
getLengthFromFileHeader
int getLengthFromFileHeader(Array<byte> fileHeader)
-
calculate2bytesInt
Array<byte> calculate2bytesInt(int value)
-
calculateMrzCheckDigit
int calculateMrzCheckDigit(String input)
calculates checksum in accordance to the mrp standard http://www.highprogrammer.com/alan/numbers/mrp.html
-
inputStreamToByteArray
Array<byte> inputStreamToByteArray(InputStream inputStream)
-
invertBytes
Array<byte> invertBytes(Array<byte> bytes)
In order to endian conversion
-
-
-
-