Class AbstractMessageCoder<H extends org.bn.coders.IASN1PreparedElement,​B extends org.bn.coders.IASN1PreparedElement,​E extends org.bn.coders.IASN1PreparedElement,​M extends AbstractMessage<H,​B,​E>>

  • Direct Known Subclasses:
    MessageCoder, MessageCoder, MessageCoder

    public abstract class AbstractMessageCoder<H extends org.bn.coders.IASN1PreparedElement,​B extends org.bn.coders.IASN1PreparedElement,​E extends org.bn.coders.IASN1PreparedElement,​M extends AbstractMessage<H,​B,​E>>
    extends Object
    • Constructor Detail

      • AbstractMessageCoder

        protected AbstractMessageCoder​(Class<E> applicationDataClass)
    • Method Detail

      • hexStringToByteArray

        public static byte[] hexStringToByteArray​(String s)
      • bytesToHex

        public static String bytesToHex​(byte[] bytes)
      • isNumericString

        public static boolean isNumericString​(org.bn.coders.ElementInfo elementInfo)
      • encodeRequest

        public abstract String encodeRequest​(M message)
      • decodeResponse

        public abstract M decodeResponse​(String message)
      • initializeMessage

        public abstract M initializeMessage​(String uid,
                                            String token,
                                            String vin,
                                            String applicationID,
                                            int applicationDataProtocolVersion,
                                            int messageID,
                                            E applicationData)
      • getVersion

        public abstract String getVersion()
      • getApplicationDataClass

        public Class<E> getApplicationDataClass()