|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.model.md5.importer.resource.ResourceImporter<T>
public abstract class ResourceImporter<T>
ResourceImporter defines the abstraction of an
importer 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 |
ResourceImporter()
Constructor of ResourceImporter. |
| Method Summary | |
|---|---|
abstract void |
cleanup()
Clean up the importer. |
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 ResourceImporter()
ResourceImporter.
| 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 - Thrown when 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 | ||||||||