Class IsoTypeReader

java.lang.Object
org.mp4parser.tools.IsoTypeReader

public final class IsoTypeReader extends Object
  • Constructor Details

    • IsoTypeReader

      public IsoTypeReader()
  • Method Details

    • readUInt32BE

      public static long readUInt32BE(ByteBuffer bb)
    • readUInt32

      public static long readUInt32(ByteBuffer bb)
    • readUInt24

      public static int readUInt24(ByteBuffer bb)
    • readUInt16

      public static int readUInt16(ByteBuffer bb)
    • readUInt16BE

      public static int readUInt16BE(ByteBuffer bb)
    • readUInt8

      public static int readUInt8(ByteBuffer bb)
    • byte2int

      public static int byte2int(byte b)
    • readString

      public static String readString(ByteBuffer byteBuffer)
      Reads a zero terminated UTF-8 string.
      Parameters:
      byteBuffer - the data source
      Returns:
      the string readByte
      Throws:
      Error - in case of an error in the underlying stream
    • readString

      public static String readString(ByteBuffer byteBuffer, int length)
    • readUInt64

      public static long readUInt64(ByteBuffer byteBuffer)
    • readFixedPoint1616

      public static double readFixedPoint1616(ByteBuffer bb)
    • readFixedPoint0230

      public static double readFixedPoint0230(ByteBuffer bb)
    • readFixedPoint88

      public static float readFixedPoint88(ByteBuffer bb)
    • readIso639

      public static String readIso639(ByteBuffer bb)
    • read4cc

      public static String read4cc(ByteBuffer bb)
    • readUInt48

      public static long readUInt48(ByteBuffer byteBuffer)