java.lang.Object
com.pervasive.datarush.operators.io.mdf.MDFUtil

public class MDFUtil extends Object
  • Field Details

  • Constructor Details

    • MDFUtil

      public MDFUtil()
  • Method Details

    • 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)
    • applyFormula

      public static Number applyFormula(String formula, Number value) throws com.pervasive.datarush.expression.ParseException
      Throws:
      com.pervasive.datarush.expression.ParseException