io.github.binaryfoo.decoders.Base10PrimitiveDecoder.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of emv-bertlv Show documentation
Show all versions of emv-bertlv Show documentation
Some decoders for the data used in EMV credit card transactions.
package io.github.binaryfoo.decoders
import kotlin.text.isEmpty
class Base10PrimitiveDecoder : PrimitiveDecoder {
override fun decode(hexString: String): String {
return if (hexString.isEmpty()) "" else Integer.parseInt(hexString, 16).toString()
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy