- java.lang.Object
-
- com.pervasive.datarush.operators.io.mdf.MDFUtil
-
public class MDFUtil extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
MDFUtil.MDFVersion
-
Field Summary
Fields Modifier and Type Field Description static String
CHARSET_ISO8859
static String
CHARSET_UTF8
static long
epoch1984
static long
MAX_UINT64
-
Constructor Summary
Constructors Constructor Description MDFUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Number
applyFormula(String formula, Number value)
static com.pervasive.datarush.operators.io.mdf.internal.MDF<?>
getMDFFileWrapper(MDFUtil.MDFVersion version, FileClient fileClient, ByteSource source)
static String
readChars(ByteBuffer buffer, int length, String charset)
static String
readCharsUTF16(ByteBuffer buffer, int length, boolean littleEndian)
static short
readInt16(ByteBuffer buffer)
static int
readInt32(ByteBuffer buffer)
static long
readInt64(ByteBuffer buffer)
static long
readLink(ByteBuffer buffer)
static long
readPartValue(long bitOffset, long bitSize, ByteBuffer buffer)
static double
readReal(ByteBuffer buffer)
static int
readUInt16(ByteBuffer buffer)
static long
readUInt32(ByteBuffer buffer)
static long
readUInt64(ByteBuffer buffer)
static byte
readUInt8(ByteBuffer buffer)
static long
readValue(int bitOffset, int bitSize, ByteBuffer buffer)
-
-
-
Field Detail
-
epoch1984
public static final long epoch1984
- See Also:
- Constant Field Values
-
CHARSET_ISO8859
public static final String CHARSET_ISO8859
- See Also:
- Constant Field Values
-
CHARSET_UTF8
public static final String CHARSET_UTF8
- See Also:
- Constant Field Values
-
MAX_UINT64
public static final long MAX_UINT64
- See Also:
- Constant Field Values
-
-
Method Detail
-
getMDFFileWrapper
public static com.pervasive.datarush.operators.io.mdf.internal.MDF<?> getMDFFileWrapper(MDFUtil.MDFVersion version, FileClient fileClient, ByteSource source) throws IOException
- Throws:
IOException
-
readUInt8
public static byte readUInt8(ByteBuffer buffer)
-
readUInt16
public static int readUInt16(ByteBuffer buffer)
-
readInt16
public static short readInt16(ByteBuffer buffer)
-
readUInt32
public static long readUInt32(ByteBuffer buffer)
-
readInt32
public static int readInt32(ByteBuffer buffer)
-
readUInt64
public static long readUInt64(ByteBuffer buffer)
-
readInt64
public static long readInt64(ByteBuffer buffer)
-
readReal
public static double readReal(ByteBuffer buffer)
-
readLink
public static long readLink(ByteBuffer buffer)
-
readChars
public static String readChars(ByteBuffer buffer, int length, String charset) throws IOException
- Throws:
IOException
-
readCharsUTF16
public static String readCharsUTF16(ByteBuffer buffer, int length, boolean littleEndian) throws IOException
- Throws:
IOException
-
readValue
public static long readValue(int bitOffset, int bitSize, ByteBuffer buffer)
-
readPartValue
public static long readPartValue(long bitOffset, long bitSize, ByteBuffer buffer)
-
-