Package org.mp4parser.tools
Class IsoTypeReader
- java.lang.Object
-
- org.mp4parser.tools.IsoTypeReader
-
public final class IsoTypeReader extends Object
-
-
Constructor Summary
Constructors Constructor Description IsoTypeReader()
-
Method Summary
Modifier and Type Method Description static intbyte2int(byte b)static Stringread4cc(ByteBuffer bb)static doublereadFixedPoint0230(ByteBuffer bb)static doublereadFixedPoint1616(ByteBuffer bb)static floatreadFixedPoint88(ByteBuffer bb)static StringreadIso639(ByteBuffer bb)static StringreadString(ByteBuffer byteBuffer)Reads a zero terminated UTF-8 string.static StringreadString(ByteBuffer byteBuffer, int length)static intreadUInt16(ByteBuffer bb)static intreadUInt16BE(ByteBuffer bb)static intreadUInt24(ByteBuffer bb)static longreadUInt32(ByteBuffer bb)static longreadUInt32BE(ByteBuffer bb)static longreadUInt48(ByteBuffer byteBuffer)static longreadUInt64(ByteBuffer byteBuffer)static intreadUInt8(ByteBuffer bb)
-
-
-
Method Detail
-
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)
-
-