Class Atom
Object
com.liferay.portlet.documentlibrary.util.Atom
Atoms are self-contained data units in that contain information about an MP4
movie file.
- Author:
- Juan González
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected longbytesToLong(byte[] buffer) voidfillBuffer(RandomAccessFile randomAccessFile) byte[]longlonggetSize()getType()protected booleanbooleanisFTYP()booleanisMDAT()booleanisMOOV()booleanvoidprotected intpatchCo64Atom(int index) protected intpatchStcoAtom(int index) voidsetBuffer(byte[] buffer) voidsetOffset(long offset) voidsetSize(long size) void
-
Field Details
-
CMOV
- See Also:
-
CO64
- See Also:
-
FREE
- See Also:
-
FTYP
- See Also:
-
JUNK
- See Also:
-
MDAT
- See Also:
-
MOOV
- See Also:
-
PICT
- See Also:
-
PNOT
- See Also:
-
SKIP
- See Also:
-
STCO
- See Also:
-
TOP_LEVEL_ATOMS
-
WIDE
- See Also:
-
-
Constructor Details
-
Atom
- Throws:
IOException
-
-
Method Details
-
fillBuffer
- Throws:
IOException
-
getBuffer
public byte[] getBuffer() -
getOffset
public long getOffset() -
getSize
public long getSize() -
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
-
bytesToLong
protected long bytesToLong(byte[] buffer) -
hasCompressedMoovAtom
protected boolean hasCompressedMoovAtom() -
patchCo64Atom
protected int patchCo64Atom(int index) -
patchStcoAtom
protected int patchStcoAtom(int index)
-