public class TransferUtil extends Object
| Modifier and Type | Field and Description |
|---|---|
static byte[] |
TatalaFlag |
| Constructor and Description |
|---|
TransferUtil() |
| Modifier and Type | Method and Description |
|---|---|
static Object |
byteArrayToReturnObject(byte[] byteArray) |
static String |
byteArrayToString(byte[] byteArray) |
static TransferObject |
byteArrayToTransferObject(byte[] byteArray) |
static int |
getExpectReceiveLength(byte[] receiveData) |
static int |
getLengthOfBoolean() |
static int |
getLengthOfByte() |
static int |
getLengthOfByteArray(byte[] v) |
static int |
getLengthOfChar() |
static int |
getLengthOfDate() |
static int |
getLengthOfDouble() |
static int |
getLengthOfDoubleArray(double[] v) |
static int |
getLengthOfFloat() |
static int |
getLengthOfFloatArray(float[] v) |
static int |
getLengthOfInt() |
static int |
getLengthOfIntArray(int[] v) |
static int |
getLengthOfLong() |
static int |
getLengthOfLongArray(long[] v) |
static int |
getLengthOfShort() |
static int |
getLengthOfString(String s) |
static int |
getLengthOfStringArray(String[] strs) |
static int |
getLengthOfWrapper(TransferObjectWrapper value) |
static byte[] |
getNoTatalaFlagData(byte[] receiveData) |
static boolean |
isCompress(byte b) |
static boolean |
isEmpty(String str) |
static boolean |
isServerCall(byte b) |
static int |
readInt(InputStream is) |
static byte[] |
returnObjectToByteArray(TransferObject to,
Object returnObject) |
static byte[] |
transferObjectToByteArray(TransferObject to) |
static void |
writeInt(OutputStream os,
int v) |
public static int getLengthOfBoolean()
public static int getLengthOfByte()
public static int getLengthOfByteArray(byte[] v)
public static int getLengthOfShort()
public static int getLengthOfChar()
public static int getLengthOfInt()
public static int getLengthOfIntArray(int[] v)
public static int getLengthOfLong()
public static int getLengthOfLongArray(long[] v)
public static int getLengthOfFloat()
public static int getLengthOfFloatArray(float[] v)
public static int getLengthOfDouble()
public static int getLengthOfDoubleArray(double[] v)
public static int getLengthOfDate()
public static int getLengthOfString(String s)
public static int getLengthOfStringArray(String[] strs)
public static int getLengthOfWrapper(TransferObjectWrapper value)
public static boolean isEmpty(String str)
public static void writeInt(OutputStream os, int v) throws IOException
IOExceptionpublic static int readInt(InputStream is) throws IOException
IOExceptionpublic static int getExpectReceiveLength(byte[] receiveData)
public static byte[] getNoTatalaFlagData(byte[] receiveData)
public static byte[] transferObjectToByteArray(TransferObject to) throws IOException
IOExceptionpublic static TransferObject byteArrayToTransferObject(byte[] byteArray) throws DataFormatException, SocketExecuteException
public static byte[] returnObjectToByteArray(TransferObject to, Object returnObject) throws IOException
IOExceptionpublic static Object byteArrayToReturnObject(byte[] byteArray) throws DataFormatException, SocketExecuteException
public static boolean isCompress(byte b)
public static boolean isServerCall(byte b)
public static String byteArrayToString(byte[] byteArray)
Copyright © 2017. All rights reserved.