com.liferay.portlet.documentlibrary.util
Class Atom
java.lang.Object
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
Atom
public Atom(RandomAccessFile randomAccessFile)
throws IOException
- Throws:
IOException
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)