com.coremedia.iso
Class IsoTypeReader

java.lang.Object
  extended by com.coremedia.iso.IsoTypeReader

public final class IsoTypeReader
extends Object


Constructor Summary
IsoTypeReader()
           
 
Method Summary
static int byte2int(byte b)
           
static String read4cc(ByteBuffer bb)
           
static double readFixedPoint1616(ByteBuffer bb)
           
static float readFixedPoint88(ByteBuffer bb)
           
static String readIso639(ByteBuffer bb)
           
static String readString(ByteBuffer byteBuffer)
          Reads a zero terminated UTF-8 string.
static String readString(ByteBuffer byteBuffer, int length)
           
static int readUInt16(ByteBuffer bb)
           
static int readUInt16BE(ByteBuffer bb)
           
static int readUInt24(ByteBuffer bb)
           
static long readUInt32(ByteBuffer bb)
           
static long readUInt32BE(ByteBuffer bb)
           
static long readUInt64(ByteBuffer byteBuffer)
           
static int readUInt8(ByteBuffer bb)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IsoTypeReader

public IsoTypeReader()
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)

readFixedPoint88

public static float readFixedPoint88(ByteBuffer bb)

readIso639

public static String readIso639(ByteBuffer bb)

read4cc

public static String read4cc(ByteBuffer bb)


Copyright © 2012. All Rights Reserved.