Package net.sf.freecol.common.resources
Class AudioResource
- java.lang.Object
-
- net.sf.freecol.common.resources.Resource
-
- net.sf.freecol.common.resources.AudioResource
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class net.sf.freecol.common.resources.Resource
Resource.Cleanable
-
-
Field Summary
Fields Modifier and Type Field Description private java.io.Filefile
-
Constructor Summary
Constructors Constructor Description AudioResource(java.lang.String primaryKey, java.io.File file)AudioResource(java.lang.String primaryKey, java.net.URI resourceLocator)Do not use directly.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.io.FilegetAudio()Gets the file represented by this resource.voidpreload()Preload the resource if possible/meaningful.-
Methods inherited from class net.sf.freecol.common.resources.Resource
getPrimaryKey, getResourceLocator
-
-
-
-
Constructor Detail
-
AudioResource
public AudioResource(java.lang.String primaryKey, java.io.File file)
-
AudioResource
public AudioResource(java.lang.String primaryKey, java.net.URI resourceLocator) throws java.io.IOExceptionDo not use directly.- Parameters:
primaryKey- The primary key.resourceLocator- TheURIused when loading this resource.- Throws:
java.io.IOException- if the URI does not point to recognizable audio.
-
-