com.coremedia.iso.boxes.mdat
Class SampleList
java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractList<ByteBuffer>
com.coremedia.iso.boxes.mdat.SampleList
- All Implemented Interfaces:
- Iterable<ByteBuffer>, Collection<ByteBuffer>, List<ByteBuffer>
public class SampleList
- extends AbstractList<ByteBuffer>
Creates a list of ByteBuffer
s that represent the samples of a given track.
Methods inherited from class java.util.AbstractList |
add, add, addAll, clear, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, remove, removeRange, set, subList |
SampleList
public SampleList(TrackBox trackBox)
SampleList
public SampleList(TrackFragmentBox traf)
getOffsetKeys
public long[] getOffsetKeys()
- Gets a sorted random access optimized list of all sample offsets.
Basically it is a map from sample number to sample offset.
- Returns:
- the sorted list of sample offsets
size
public int size()
- Specified by:
size
in interface Collection<ByteBuffer>
- Specified by:
size
in interface List<ByteBuffer>
- Specified by:
size
in class AbstractCollection<ByteBuffer>
get
public ByteBuffer get(int index)
- Specified by:
get
in interface List<ByteBuffer>
- Specified by:
get
in class AbstractList<ByteBuffer>
Copyright © 2012. All Rights Reserved.