net.sourceforge.pavlov.randommedia
Class MediaCache
java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractList<E>
java.util.Vector<E>
java.util.Stack<Object>
net.sourceforge.pavlov.randommedia.MediaCache
- All Implemented Interfaces:
- Serializable, Cloneable, Iterable<Object>, Collection<Object>, List<Object>, RandomAccess
- Direct Known Subclasses:
- ImageCache, SoundList
public abstract class MediaCache
- extends Stack<Object>
Loads and holds a bunch of audio files whose locations are specified
relative to a fixed base URL.
- See Also:
- Serialized Form
Methods inherited from class java.util.Vector |
add, addAll, addAll, addElement, capacity, clear, clone, contains, containsAll, copyInto, elementAt, elements, ensureCapacity, equals, firstElement, get, hashCode, indexOf, indexOf, insertElementAt, isEmpty, lastElement, lastIndexOf, lastIndexOf, remove, remove, removeAll, removeAllElements, removeElement, removeElementAt, removeRange, retainAll, set, setElementAt, setSize, size, subList, toArray, toArray, toString, trimToSize |
MediaCache
public MediaCache(RandomURLProvider p,
int mySize)
- Creates a new
MediaCache
instance.
- Parameters:
p
- a RandomURLProvider
valuemySize
- an int
value
startLoading
public void startLoading(URL url)
- Describe
startLoading
method here.
- Parameters:
url
- an URL
value
getObject
public Object getObject()
- Describe
getObject
method here.
- Returns:
- an
Object
value
add
public boolean add(Object obj)
- Describe
add
method here.
- Specified by:
add
in interface Collection<Object>
- Specified by:
add
in interface List<Object>
- Overrides:
add
in class Vector<Object>
- Parameters:
obj
- an Object
value
- Returns:
- a
boolean
value
clearCache
public void clearCache()
- Describe
clearCache
method here.
manageCache
public void manageCache()
- Describe
manageCache
method here.