public class JWire
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
JWire.Deserializer |
static class |
JWire.EncoderCode |
static interface |
JWire.GenArr |
static interface |
JWire.StrArr |
static interface |
JWire.StrObj |
static class |
JWire.Trap |
Modifier and Type | Field and Description |
---|---|
static java.util.regex.Pattern |
patObj |
static java.util.regex.Pattern |
patSig |
Modifier and Type | Method and Description |
---|---|
static JWire.EncoderCode |
encode(java.lang.Object jobj) |
JWire.Deserializer |
getDeserializer(java.lang.String jwireStr) |
JWire.EncoderCode |
getEncoder(java.lang.Class<?> oCls) |
JWire.EncoderCode |
getEncoderByClass(java.lang.String sReqdClass) |
static java.lang.String |
getJWireSig(java.lang.Class<?> oCls) |
static java.lang.String |
getJWireSigV3(java.lang.Class<?> oCls) |
JWire.EncoderCode |
getNamedEncoderForClass(java.lang.Class<?> oCls) |
JWire.EncoderCode |
getNamedEncoderForClass(java.lang.Class<?> oPrefCls,
java.lang.Class<?> oCls) |
JWire.EncoderCode |
getNamedEncoderForClass(java.lang.String sPrefix,
java.lang.Class<?> oCls) |
JWire.EncoderCode |
getPrescribedEncoder(java.lang.String sJWireSig,
java.lang.String sEncoderPref) |
static PodBase.RecHdr |
getRecHdr(JWired oJW) |
JWire.EncoderCode |
getSameEncoder(java.lang.Class<?> oSelf,
java.lang.Class<?> oCls) |
static java.lang.String |
java2wire(java.lang.Object jobj) |
static java.lang.String |
java2wire(java.lang.Object jobj,
java.lang.String sEncoderPref) |
static JWire |
jwireInstance() |
static void |
setPresetPrefClass(java.lang.String sPresetPrefClass) |
JWire |
strBoolean(java.lang.StringBuilder sb,
boolean b) |
JWire |
strDouble(java.lang.StringBuilder sb,
double d) |
JWire |
strDoubleArr(java.lang.StringBuilder sb,
double[] arr) |
JWire |
strEnum(java.lang.StringBuilder sb,
java.lang.Enum<?> e) |
JWire |
strInt(java.lang.StringBuilder sb,
int i) |
JWire |
strIntArr(java.lang.StringBuilder sb,
int[] arr) |
JWire |
strLong(java.lang.StringBuilder sb,
long i) |
JWire |
strLongArr(java.lang.StringBuilder sb,
long[] arr) |
JWire |
strObject(java.lang.StringBuilder sb,
java.lang.Object obj,
JWire.EncoderCode self,
java.lang.Class<?> oCls) |
JWire |
strObjectArr(java.lang.StringBuilder sb,
java.lang.Object[] arr,
JWire.EncoderCode self,
java.lang.Class<?> oCls) |
JWire |
strShort(java.lang.StringBuilder sb,
short i) |
JWire |
strShortArr(java.lang.StringBuilder sb,
short[] arr) |
JWire |
strString(java.lang.StringBuilder sb,
java.lang.String s) |
JWire |
strStringArr(java.lang.StringBuilder sb,
java.lang.String[] arr) |
JWire |
strStrObj(java.lang.StringBuilder sb,
java.lang.Object obj) |
JWire |
strStrObj(java.lang.StringBuilder sb,
java.lang.Object obj,
char cFlag) |
static <T> T |
wire2java(java.lang.String jwire,
java.lang.Class<T> T) |
static <T> T |
wire2java(java.lang.String jwire,
java.lang.Class<T> T,
java.lang.String sEncoderCode) |
static java.lang.Object |
wire2java(java.lang.String jwire,
java.lang.Object obj) |
static java.lang.Object |
wire2java(java.lang.String jwire,
java.lang.String sJWireSig,
java.lang.String sEncoderPref) |
public static java.util.regex.Pattern patObj
public static java.util.regex.Pattern patSig
public static JWire jwireInstance()
public static JWire.EncoderCode encode(java.lang.Object jobj) throws JWire.Trap, java.lang.InstantiationException, java.lang.IllegalAccessException, java.lang.ClassNotFoundException
JWire.Trap
java.lang.InstantiationException
java.lang.IllegalAccessException
java.lang.ClassNotFoundException
public static java.lang.String java2wire(java.lang.Object jobj) throws JWire.Trap, java.lang.InstantiationException, java.lang.IllegalAccessException, java.lang.ClassNotFoundException
JWire.Trap
java.lang.InstantiationException
java.lang.IllegalAccessException
java.lang.ClassNotFoundException
public static java.lang.String java2wire(java.lang.Object jobj, java.lang.String sEncoderPref) throws JWire.Trap, java.lang.InstantiationException, java.lang.IllegalAccessException, java.lang.ClassNotFoundException
JWire.Trap
java.lang.InstantiationException
java.lang.IllegalAccessException
java.lang.ClassNotFoundException
public static <T> T wire2java(java.lang.String jwire, java.lang.Class<T> T) throws JWire.Trap, java.lang.InstantiationException, java.lang.IllegalAccessException, java.lang.ClassNotFoundException
JWire.Trap
java.lang.InstantiationException
java.lang.IllegalAccessException
java.lang.ClassNotFoundException
public static <T> T wire2java(java.lang.String jwire, java.lang.Class<T> T, java.lang.String sEncoderCode) throws JWire.Trap, java.lang.InstantiationException, java.lang.IllegalAccessException, java.lang.ClassNotFoundException
JWire.Trap
java.lang.InstantiationException
java.lang.IllegalAccessException
java.lang.ClassNotFoundException
public static java.lang.Object wire2java(java.lang.String jwire, java.lang.Object obj) throws JWire.Trap, java.lang.InstantiationException, java.lang.IllegalAccessException, java.lang.ClassNotFoundException
JWire.Trap
java.lang.InstantiationException
java.lang.IllegalAccessException
java.lang.ClassNotFoundException
public static java.lang.Object wire2java(java.lang.String jwire, java.lang.String sJWireSig, java.lang.String sEncoderPref) throws JWire.Trap, java.lang.InstantiationException, java.lang.IllegalAccessException, java.lang.ClassNotFoundException
JWire.Trap
java.lang.InstantiationException
java.lang.IllegalAccessException
java.lang.ClassNotFoundException
public static PodBase.RecHdr getRecHdr(JWired oJW) throws java.lang.Exception
java.lang.Exception
public static java.lang.String getJWireSig(java.lang.Class<?> oCls)
public static java.lang.String getJWireSigV3(java.lang.Class<?> oCls)
public static void setPresetPrefClass(java.lang.String sPresetPrefClass)
public JWire.EncoderCode getPrescribedEncoder(java.lang.String sJWireSig, java.lang.String sEncoderPref) throws JWire.Trap, java.lang.InstantiationException, java.lang.IllegalAccessException, java.lang.ClassNotFoundException
JWire.Trap
java.lang.InstantiationException
java.lang.IllegalAccessException
java.lang.ClassNotFoundException
public JWire.EncoderCode getEncoder(java.lang.Class<?> oCls) throws JWire.Trap, java.lang.InstantiationException, java.lang.IllegalAccessException, java.lang.ClassNotFoundException
JWire.Trap
java.lang.InstantiationException
java.lang.IllegalAccessException
java.lang.ClassNotFoundException
public JWire.EncoderCode getSameEncoder(java.lang.Class<?> oSelf, java.lang.Class<?> oCls) throws JWire.Trap, java.lang.InstantiationException, java.lang.IllegalAccessException, java.lang.ClassNotFoundException
JWire.Trap
java.lang.InstantiationException
java.lang.IllegalAccessException
java.lang.ClassNotFoundException
public JWire.EncoderCode getNamedEncoderForClass(java.lang.Class<?> oPrefCls, java.lang.Class<?> oCls) throws JWire.Trap, java.lang.InstantiationException, java.lang.IllegalAccessException, java.lang.ClassNotFoundException
JWire.Trap
java.lang.InstantiationException
java.lang.IllegalAccessException
java.lang.ClassNotFoundException
public JWire.EncoderCode getNamedEncoderForClass(java.lang.Class<?> oCls) throws JWire.Trap, java.lang.InstantiationException, java.lang.IllegalAccessException, java.lang.ClassNotFoundException
JWire.Trap
java.lang.InstantiationException
java.lang.IllegalAccessException
java.lang.ClassNotFoundException
public JWire.EncoderCode getNamedEncoderForClass(java.lang.String sPrefix, java.lang.Class<?> oCls) throws JWire.Trap, java.lang.InstantiationException, java.lang.IllegalAccessException, java.lang.ClassNotFoundException
JWire.Trap
java.lang.InstantiationException
java.lang.IllegalAccessException
java.lang.ClassNotFoundException
public JWire.EncoderCode getEncoderByClass(java.lang.String sReqdClass) throws JWire.Trap, java.lang.InstantiationException, java.lang.IllegalAccessException, java.lang.ClassNotFoundException
JWire.Trap
java.lang.InstantiationException
java.lang.IllegalAccessException
java.lang.ClassNotFoundException
public JWire strInt(java.lang.StringBuilder sb, int i)
public JWire strLong(java.lang.StringBuilder sb, long i)
public JWire strShort(java.lang.StringBuilder sb, short i)
public JWire strDouble(java.lang.StringBuilder sb, double d)
public JWire strBoolean(java.lang.StringBuilder sb, boolean b)
public JWire strString(java.lang.StringBuilder sb, java.lang.String s)
public JWire strEnum(java.lang.StringBuilder sb, java.lang.Enum<?> e)
public JWire strObject(java.lang.StringBuilder sb, java.lang.Object obj, JWire.EncoderCode self, java.lang.Class<?> oCls) throws JWire.Trap
JWire.Trap
public JWire strStrObj(java.lang.StringBuilder sb, java.lang.Object obj) throws JWire.Trap
JWire.Trap
public JWire strStrObj(java.lang.StringBuilder sb, java.lang.Object obj, char cFlag) throws JWire.Trap
JWire.Trap
public JWire strIntArr(java.lang.StringBuilder sb, int[] arr) throws JWire.Trap
JWire.Trap
public JWire strLongArr(java.lang.StringBuilder sb, long[] arr) throws JWire.Trap
JWire.Trap
public JWire strShortArr(java.lang.StringBuilder sb, short[] arr) throws JWire.Trap
JWire.Trap
public JWire strDoubleArr(java.lang.StringBuilder sb, double[] arr) throws JWire.Trap
JWire.Trap
public JWire strStringArr(java.lang.StringBuilder sb, java.lang.String[] arr) throws JWire.Trap
JWire.Trap
public JWire strObjectArr(java.lang.StringBuilder sb, java.lang.Object[] arr, JWire.EncoderCode self, java.lang.Class<?> oCls) throws JWire.Trap
JWire.Trap
public JWire.Deserializer getDeserializer(java.lang.String jwireStr)