Jazz3D API


com.sygem.jazz3d3.loader
Class Loader

java.lang.Object
  |
  +--com.sygem.jazz3d3.loader.Loader
Direct Known Subclasses:
Loader3DS, LoaderASC, LoaderGEM, LoaderGEO, LoaderLWO, LoaderNFF, LoaderOBJ, LoaderPLG, LoaderVRML

public abstract class Loader
extends java.lang.Object

Abstract base class for all object loaders.

Version:
3.0a
Author:
SyGem Software
See Also:
Model3d, LoadFactory

Constructor Summary
Loader()
          Default constructor.
 
Method Summary
 void closeFile()
          Closes the current input stream.
 Decompressor getDecompressor()
          Returns the current decompressor from this model Loader.
 java.util.StringTokenizer getLine()
          Read a whole line from the current input stream.
 java.lang.String getLineAsString()
          Read a whole line from the current input stream.
 Object3d getParent()
          Returns the object stored using setParent.
abstract  void load(java.lang.String filename, Model3d obj)
          Begins the loading process.
 void setDecompressor(Decompressor newD)
          Assign a decompressor to this model Loader.
 void setParent(Object3d newP)
          Sets the object that the loader is to create vertices & faces on.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Loader

public Loader()
Default constructor.
Method Detail

setDecompressor

public void setDecompressor(Decompressor newD)
Assign a decompressor to this model Loader. By default, no decompressor is present.
See Also:
Decompressor

getDecompressor

public Decompressor getDecompressor()
Returns the current decompressor from this model Loader. By default, no decompressor is present.
See Also:
Decompressor

setParent

public void setParent(Object3d newP)
Sets the object that the loader is to create vertices & faces on. All loaders can call this in their load method to store the object passed in.

getParent

public Object3d getParent()
Returns the object stored using setParent.

load

public abstract void load(java.lang.String filename,
                          Model3d obj)
Begins the loading process. All loaders must provide an implementation of this method.

closeFile

public final void closeFile()
Closes the current input stream.

getLine

public final java.util.StringTokenizer getLine()
Read a whole line from the current input stream. Returns the line as a StringTokenizer.

getLineAsString

public final java.lang.String getLineAsString()
Read a whole line from the current input stream. Returns the line as a complete String.

©2001 SyGem Software