com.coremedia.iso
Class IsoTypeReader
java.lang.Object
com.coremedia.iso.IsoTypeReader
public final class IsoTypeReader
- extends java.lang.Object
Method Summary |
static int |
byte2int(byte b)
|
static java.lang.String |
read4cc(java.nio.ByteBuffer bb)
|
static double |
readFixedPoint1616(java.nio.ByteBuffer bb)
|
static float |
readFixedPoint88(java.nio.ByteBuffer bb)
|
static java.lang.String |
readIso639(java.nio.ByteBuffer bb)
|
static java.lang.String |
readString(java.nio.ByteBuffer byteBuffer)
Reads a zero terminated UTF-8 string. |
static java.lang.String |
readString(java.nio.ByteBuffer byteBuffer,
int length)
|
static int |
readUInt16(java.nio.ByteBuffer bb)
|
static int |
readUInt24(java.nio.ByteBuffer bb)
|
static long |
readUInt32(java.nio.ByteBuffer bb)
|
static long |
readUInt64(java.nio.ByteBuffer byteBuffer)
|
static int |
readUInt8(java.nio.ByteBuffer bb)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
IsoTypeReader
public IsoTypeReader()
readUInt32
public static long readUInt32(java.nio.ByteBuffer bb)
readUInt24
public static int readUInt24(java.nio.ByteBuffer bb)
readUInt16
public static int readUInt16(java.nio.ByteBuffer bb)
readUInt8
public static int readUInt8(java.nio.ByteBuffer bb)
byte2int
public static int byte2int(byte b)
readString
public static java.lang.String readString(java.nio.ByteBuffer byteBuffer)
- Reads a zero terminated UTF-8 string.
- Parameters:
byteBuffer
- the data source
- Returns:
- the string readByte
- Throws:
java.lang.Error
- in case of an error in the underlying stream
readString
public static java.lang.String readString(java.nio.ByteBuffer byteBuffer,
int length)
readUInt64
public static long readUInt64(java.nio.ByteBuffer byteBuffer)
readFixedPoint1616
public static double readFixedPoint1616(java.nio.ByteBuffer bb)
readFixedPoint88
public static float readFixedPoint88(java.nio.ByteBuffer bb)
readIso639
public static java.lang.String readIso639(java.nio.ByteBuffer bb)
read4cc
public static java.lang.String read4cc(java.nio.ByteBuffer bb)
Copyright © 2012. All Rights Reserved.