- 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 classMDFUtil.MDFVersion
-
Field Summary
Fields Modifier and Type Field Description static StringCHARSET_ISO8859static StringCHARSET_UTF8static longepoch1984static longMAX_UINT64
-
Constructor Summary
Constructors Constructor Description MDFUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static NumberapplyFormula(String formula, Number value)static com.pervasive.datarush.operators.io.mdf.internal.MDF<?>getMDFFileWrapper(MDFUtil.MDFVersion version, FileClient fileClient, ByteSource source)static StringreadChars(ByteBuffer buffer, int length, String charset)static StringreadCharsUTF16(ByteBuffer buffer, int length, boolean littleEndian)static shortreadInt16(ByteBuffer buffer)static intreadInt32(ByteBuffer buffer)static longreadInt64(ByteBuffer buffer)static longreadLink(ByteBuffer buffer)static longreadPartValue(long bitOffset, long bitSize, ByteBuffer buffer)static doublereadReal(ByteBuffer buffer)static intreadUInt16(ByteBuffer buffer)static longreadUInt32(ByteBuffer buffer)static longreadUInt64(ByteBuffer buffer)static bytereadUInt8(ByteBuffer buffer)static longreadValue(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)
-
-