com.coremedia.iso.boxes.mdat
Class SampleList

java.lang.Object
  extended by java.util.AbstractCollection<E>
      extended by java.util.AbstractList<ByteBuffer>
          extended by 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 ByteBuffers that represent the samples of a given track.


Field Summary
 
Fields inherited from class java.util.AbstractList
modCount
 
Constructor Summary
SampleList(TrackBox trackBox)
           
SampleList(TrackFragmentBox traf)
           
 
Method Summary
 ByteBuffer get(int index)
           
 long[] getOffsetKeys()
          Gets a sorted random access optimized list of all sample offsets.
 int size()
           
 
Methods inherited from class java.util.AbstractList
add, add, addAll, clear, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, remove, removeRange, set, subList
 
Methods inherited from class java.util.AbstractCollection
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.List
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray
 

Constructor Detail

SampleList

public SampleList(TrackBox trackBox)

SampleList

public SampleList(TrackFragmentBox traf)
Method Detail

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.