| java.lang.Object snow.utils.storage.VectorUtils
VectorUtils | public class VectorUtils (Code) | | |
IsBooleanContent | final public static int IsBooleanContent(Code) | | |
IsCharContent | final public static int IsCharContent(Code) | | |
IsDoubleContent | final public static int IsDoubleContent(Code) | | |
IsIntegerContent | final public static int IsIntegerContent(Code) | | |
IsLongContent | final public static int IsLongContent(Code) | | |
IsLongStringContent | final public static int IsLongStringContent(Code) | | |
IsStringArrayContent | final public static int IsStringArrayContent(Code) | | |
IsStringContent | final public static int IsStringContent(Code) | | |
IsVectorContent | final public static int IsVectorContent(Code) | | |
IsbyteArrayContent | final public static int IsbyteArrayContent(Code) | | |
IsdoubleArrayContent | final public static int IsdoubleArrayContent(Code) | | |
IsfloatArrayContent | final public static int IsfloatArrayContent(Code) | | |
IsintArrayContent | final public static int IsintArrayContent(Code) | | |
calculateUTFLength | public static int calculateUTFLength(String str)(Code) | | An utf string has a 65535 bytes limited length.
chars < 127 take one byte, greater chars take 2 or 3 bytes
this routine returns the exact bytes that the string will take
|
streamToVector | public static void streamToVector(DataInputStream in, StorageVector theVector) throws Exception(Code) | | Reads the stream, which originates from a vectorToStream process
and rebuilds theVector. theVector has initially to be a vector with zero length.
Inverse method is vectorToStream.
CAUTION: all lists are converted to StorageVector !
|
vectorToStream | public static void vectorToStream(DataOutputStream out, List<Object> theVector) throws Exception(Code) | | Writes the vector (consisting of elementary types)
inverse method is streamToVector.
CAUTION: all lists appears in the form of StorageVector ! (List<Object>)
|
|
|