|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectru.smartflex.tools.dbf.mem.MemHelper
public class MemHelper
Helper class that provides conversion from internal .mem file format.
Method Summary | |
---|---|
protected static java.util.Date |
getDate(double num)
Return date from double - many thanks to Peter Townsend (He wrote dbmem.c; In Russia we usually said - ku two times ;)). |
protected static double |
getDouble(byte[] record)
|
protected static java.lang.String |
getFieldName(byte[] record,
int off,
int len)
|
protected static java.lang.String |
getString(byte[] record,
int off,
int len,
java.lang.String enc)
|
protected static boolean |
readFully(java.io.InputStream in,
byte[] b,
int off,
int len)
Copy past from DataInputStream - many thanks |
protected static void |
reverse(byte[] array)
Copy past from org.apache.commons.lang3.ArrayUtils - many thanks. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
protected static double getDouble(byte[] record)
protected static java.util.Date getDate(double num)
num
-
protected static java.lang.String getString(byte[] record, int off, int len, java.lang.String enc) throws java.io.UnsupportedEncodingException
java.io.UnsupportedEncodingException
protected static java.lang.String getFieldName(byte[] record, int off, int len)
protected static void reverse(byte[] array)
array
- protected static boolean readFully(java.io.InputStream in, byte[] b, int off, int len)
in
- b
- off
- len
-
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |