|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.md5importer.loader.ResourceLoader<T>
public abstract class ResourceLoader<T>
ResourceLoader defines the abstraction of an
loader unit that provides the common importing functionalities.
| Field Summary | |
|---|---|
protected static com.jme.math.Quaternion |
base
The base orientation value used for translating coordinate systems. |
protected java.io.StreamTokenizer |
reader
The StreamTokenizer instance. |
protected static int |
version
The current supported versions of MD5 format. |
| Constructor Summary | |
|---|---|
protected |
ResourceLoader()
Constructor of ResourceLoader. |
| Method Summary | |
|---|---|
abstract void |
cleanup()
Clean up the loader. |
protected abstract T |
load(java.lang.String name)
Load the data with given name. |
T |
load(java.net.URL url,
java.lang.String name)
Load the resource. |
protected com.jme.math.Vector3f |
readVector()
Read in a three-dimensional vector. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static final com.jme.math.Quaternion base
protected static final int version
protected java.io.StreamTokenizer reader
StreamTokenizer instance.
| Constructor Detail |
|---|
protected ResourceLoader()
ResourceLoader.
| Method Detail |
|---|
public T load(java.net.URL url,
java.lang.String name)
throws java.io.IOException
url - The URL to the file.name - The String to set the result to.
T loaded data structure.
java.io.IOException - If reading is interrupted.
protected abstract T load(java.lang.String name)
throws java.io.IOException
name - The String to set the result to.
T loaded data structure.
java.io.IOException - If reading is interrupted.
protected com.jme.math.Vector3f readVector()
throws java.io.IOException
Vector3f instance.
java.io.IOException - If errors occurred during file reading.public abstract void cleanup()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||