public class

ByteAdapter

extends TypeAdapter<T>
java.lang.Object
   ↳ com.google.gson.TypeAdapter<T>
     ↳ com.openxc.messages.formatters.ByteAdapter

Class Overview

Utility functions to read byte arrays from JSON strings.

Summary

Public Constructors
ByteAdapter()
Public Methods
static String byteArrayToHexString(byte[] bytes)
static byte[] hexStringToByteArray(String s)
byte[] read(JsonReader reader)
void write(JsonWriter writer, byte[] bytes)
[Expand]
Inherited Methods
From class com.google.gson.TypeAdapter
From class java.lang.Object

Public Constructors

public ByteAdapter ()

Public Methods

public static String byteArrayToHexString (byte[] bytes)

public static byte[] hexStringToByteArray (String s)

public byte[] read (JsonReader reader)

Throws
IOException

public void write (JsonWriter writer, byte[] bytes)

Throws
IOException