Liferay 6.1.2-ce-ga3

com.liferay.portlet.documentlibrary.util
Class Atom

java.lang.Object
  extended by com.liferay.portlet.documentlibrary.util.Atom

public class Atom
extends Object

Atoms are self-contained data units in that contain information about an MP4 movie file.

See Also:
JQTFastStart

Field Summary
static String CMOV
           
static String CO64
           
static String FREE
           
static String FTYP
           
static String JUNK
           
static String MDAT
           
static String MOOV
           
static String PICT
           
static String PNOT
           
static String SKIP
           
static String STCO
           
static String[] TOP_LEVEL_ATOMS
           
static String WIDE
           
 
Constructor Summary
Atom(RandomAccessFile randomAccessFile)
           
 
Method Summary
protected  long bytesToLong(byte[] buffer)
           
 void fillBuffer(RandomAccessFile randomAccessFile)
           
 byte[] getBuffer()
           
 long getOffset()
           
 long getSize()
           
 String getType()
           
protected  boolean hasCompressedMoovAtom()
           
 boolean isFTYP()
           
 boolean isMDAT()
           
 boolean isMOOV()
           
 boolean isTopLevelAtom()
           
 void patchAtom()
           
protected  int patchCo64Atom(int index)
           
protected  int patchStcoAtom(int index)
           
 void setBuffer(byte[] buffer)
           
 void setOffset(long offset)
           
 void setSize(long size)
           
 void setType(String type)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CMOV

public static final String CMOV
See Also:
Constant Field Values

CO64

public static final String CO64
See Also:
Constant Field Values

FREE

public static final String FREE
See Also:
Constant Field Values

FTYP

public static final String FTYP
See Also:
Constant Field Values

JUNK

public static final String JUNK
See Also:
Constant Field Values

MDAT

public static final String MDAT
See Also:
Constant Field Values

MOOV

public static final String MOOV
See Also:
Constant Field Values

PICT

public static final String PICT
See Also:
Constant Field Values

PNOT

public static final String PNOT
See Also:
Constant Field Values

SKIP

public static final String SKIP
See Also:
Constant Field Values

STCO

public static final String STCO
See Also:
Constant Field Values

TOP_LEVEL_ATOMS

public static final String[] TOP_LEVEL_ATOMS

WIDE

public static final String WIDE
See Also:
Constant Field Values
Constructor Detail

Atom

public Atom(RandomAccessFile randomAccessFile)
     throws IOException
Throws:
IOException
Method Detail

fillBuffer

public void fillBuffer(RandomAccessFile randomAccessFile)
                throws IOException
Throws:
IOException

getBuffer

public byte[] getBuffer()

getOffset

public long getOffset()

getSize

public long getSize()

getType

public String getType()

isFTYP

public boolean isFTYP()

isMDAT

public boolean isMDAT()

isMOOV

public boolean isMOOV()

isTopLevelAtom

public boolean isTopLevelAtom()

patchAtom

public void patchAtom()

setBuffer

public void setBuffer(byte[] buffer)

setOffset

public void setOffset(long offset)

setSize

public void setSize(long size)

setType

public void setType(String type)

bytesToLong

protected long bytesToLong(byte[] buffer)

hasCompressedMoovAtom

protected boolean hasCompressedMoovAtom()

patchCo64Atom

protected int patchCo64Atom(int index)

patchStcoAtom

protected int patchStcoAtom(int index)

Liferay 6.1.2-ce-ga3