io.github.binaryfoo.Decoder.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
import io.github.binaryfoo.decoders.DecodeSession
/**
* Idea being children are shown in a tree structure.
*/
interface Decoder {
/**
* Turn bits into something more mind friendly.
*/
fun decode(input: String, startIndexInBytes: Int, session: DecodeSession): List
/**
* Return null if ok. Otherwise an abusive/informative/educational message.
*/
fun validate(input: String?): String?
/**
* In characters.
*/
fun getMaxLength(): Int
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy