org.jcodec.containers.mkv.ebml
Class UnsignedIntegerElement

java.lang.Object
  extended by org.jcodec.containers.mkv.ebml.Element
      extended by org.jcodec.containers.mkv.ebml.BinaryElement
          extended by org.jcodec.containers.mkv.ebml.UnsignedIntegerElement

public class UnsignedIntegerElement
extends BinaryElement

Basic class for the Unsigned Integer data type in EBML.

Author:
John Cannon

Field Summary
 
Fields inherited from class org.jcodec.containers.mkv.ebml.Element
data, dataOffset, dataRead, id, offset, parent, size, type
 
Constructor Summary
UnsignedIntegerElement(byte[] typeID)
           
UnsignedIntegerElement(byte[] typeID, long value)
           
 
Method Summary
 long get()
           
static int getMinByteSizeUnsigned(long value)
           
static byte[] longToBytes(long value)
           
 void set(long value)
           
 
Methods inherited from class org.jcodec.containers.mkv.ebml.BinaryElement
getData, setData
 
Methods inherited from class org.jcodec.containers.mkv.ebml.Element
ebmlBytes, ebmlBytes, getEbmlSize, getId, getSize, isSameEbmlId, isSameMatroskaType, mux, mux, readData, setParent, skipData
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UnsignedIntegerElement

public UnsignedIntegerElement(byte[] typeID)

UnsignedIntegerElement

public UnsignedIntegerElement(byte[] typeID,
                              long value)
Method Detail

set

public void set(long value)

longToBytes

public static byte[] longToBytes(long value)

getMinByteSizeUnsigned

public static int getMinByteSizeUnsigned(long value)

get

public long get()


Copyright © 2013. All Rights Reserved.