public class JSONFactory extends Object
Constructor and Description |
---|
JSONFactory() |
Modifier and Type | Method and Description |
---|---|
static Frame |
createFrame(net.sf.json.JSONObject json) |
static byte |
decodeHexByte(net.sf.json.JSONObject json,
String key,
byte defaultValue) |
static byte[] |
decodeHexByteArray(String value) |
static short |
decodeHexShort(net.sf.json.JSONObject json,
String key,
short defaultValue) |
static String |
encodeHexByte(byte b) |
static String |
encodeHexByteArray(byte[] value) |
static String |
encodeHexShort(short s) |
static boolean |
getBoolean(net.sf.json.JSONObject json,
String key,
boolean defaultValue) |
static Class<? extends DataBlock> |
getDataBlockClass(net.sf.json.JSONObject json) |
static short |
getShort(net.sf.json.JSONObject json,
String key,
short defaultValue) |
static void |
readDataBlocks(LongFrame longFrame,
net.sf.json.JSONObject json) |
public static String encodeHexByteArray(byte[] value)
public static byte[] decodeHexByteArray(String value)
public static String encodeHexByte(byte b)
public static String encodeHexShort(short s)
public static byte decodeHexByte(net.sf.json.JSONObject json, String key, byte defaultValue)
public static short decodeHexShort(net.sf.json.JSONObject json, String key, short defaultValue)
public static Frame createFrame(net.sf.json.JSONObject json)
public static Class<? extends DataBlock> getDataBlockClass(net.sf.json.JSONObject json)
public static boolean getBoolean(net.sf.json.JSONObject json, String key, boolean defaultValue)
public static short getShort(net.sf.json.JSONObject json, String key, short defaultValue)
public static void readDataBlocks(LongFrame longFrame, net.sf.json.JSONObject json)
Copyright © 2009–2016 MBus4J. All rights reserved.