Package net.sf.freecol.common.resources
Class FAFileResource
- java.lang.Object
-
- net.sf.freecol.common.resources.Resource
-
- net.sf.freecol.common.resources.FAFileResource
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class net.sf.freecol.common.resources.Resource
Resource.Cleanable
-
-
Constructor Summary
Constructors Modifier Constructor Description FAFileResource(java.lang.String primaryKey, java.net.URI resourceLocator)
Do not use directly.private
FAFileResource(java.lang.String primaryKey, FAFile FAFile)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FAFile
getFAFile()
Gets theFAFile
represented by this resource.void
preload()
Preload the resource if possible/meaningful.-
Methods inherited from class net.sf.freecol.common.resources.Resource
getPrimaryKey, getResourceLocator
-
-
-
-
Field Detail
-
FAFile
private final FAFile FAFile
-
-
Constructor Detail
-
FAFileResource
private FAFileResource(java.lang.String primaryKey, FAFile FAFile)
-
FAFileResource
public FAFileResource(java.lang.String primaryKey, java.net.URI resourceLocator) throws java.io.IOException
Do not use directly.- Parameters:
primaryKey
- The primary key.resourceLocator
- TheURI
used when loading this resource.- Throws:
java.io.IOException
- if FAFile can not be opened.
-
-