com.coremedia.iso.boxes.mdat
Class SampleList

java.lang.Object
  extended by java.util.AbstractCollection<E>
      extended by java.util.AbstractList<java.nio.ByteBuffer>
          extended by com.coremedia.iso.boxes.mdat.SampleList
All Implemented Interfaces:
java.lang.Iterable<java.nio.ByteBuffer>, java.util.Collection<java.nio.ByteBuffer>, java.util.List<java.nio.ByteBuffer>

public class SampleList
extends java.util.AbstractList<java.nio.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)
           
 
Method Summary
 java.nio.ByteBuffer get(int index)
           
 java.util.List<java.lang.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)
Method Detail

getOffsetKeys

public java.util.List<java.lang.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 java.util.Collection<java.nio.ByteBuffer>
Specified by:
size in interface java.util.List<java.nio.ByteBuffer>
Specified by:
size in class java.util.AbstractCollection<java.nio.ByteBuffer>

get

public java.nio.ByteBuffer get(int index)
Specified by:
get in interface java.util.List<java.nio.ByteBuffer>
Specified by:
get in class java.util.AbstractList<java.nio.ByteBuffer>


Copyright © 2012. All Rights Reserved.