net.sf.freecol.common.resources
Class AudioResource
java.lang.Object
net.sf.freecol.common.resources.Resource
net.sf.freecol.common.resources.AudioResource
public class AudioResource
- extends Resource
A Resource wrapping a File containing sounds.
- See Also:
Resource
|
Field Summary |
private java.io.File |
file
|
private static java.util.logging.Logger |
logger
|
|
Method Summary |
java.io.File |
getAudio()
Gets the file represented by this resource. |
void |
preload()
Preloading is a noop for this resource type. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
logger
private static final java.util.logging.Logger logger
file
private java.io.File file
AudioResource
public AudioResource(java.io.File file)
AudioResource
AudioResource(java.net.URI resourceLocator)
throws java.lang.Exception
- Do not use directly.
- Parameters:
resourceLocator - The URI used when loading this
resource.
- Throws:
java.lang.Exception- See Also:
ResourceFactory.createResource(URI)
preload
public void preload()
- Preloading is a noop for this resource type.
- Specified by:
preload in class Resource
getAudio
public java.io.File getAudio()
- Gets the file represented by this resource.
- Returns:
- The
File for this resource.