public class Atom
extends Object
JQTFastStart
Modifier and Type | Field and Description |
---|---|
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 and Description |
---|
Atom(RandomAccessFile randomAccessFile) |
Modifier and Type | Method and Description |
---|---|
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) |
public static final String CMOV
public static final String CO64
public static final String FREE
public static final String FTYP
public static final String JUNK
public static final String MDAT
public static final String MOOV
public static final String PICT
public static final String PNOT
public static final String SKIP
public static final String STCO
public static final String[] TOP_LEVEL_ATOMS
public static final String WIDE
public Atom(RandomAccessFile randomAccessFile) throws IOException
IOException
public void fillBuffer(RandomAccessFile randomAccessFile) throws IOException
IOException
public byte[] getBuffer()
public long getOffset()
public long getSize()
public String getType()
public boolean isFTYP()
public boolean isMDAT()
public boolean isMOOV()
public boolean isTopLevelAtom()
public void patchAtom()
public void setBuffer(byte[] buffer)
public void setOffset(long offset)
public void setSize(long size)
public void setType(String type)
protected long bytesToLong(byte[] buffer)
protected boolean hasCompressedMoovAtom()
protected int patchCo64Atom(int index)
protected int patchStcoAtom(int index)