j3d-vrml97-0.1.0

org.jdesktop.j3d.loaders.vrml97
Class VrmlLoader

java.lang.Object
  extended by com.sun.j3d.loaders.LoaderBase
      extended by org.jdesktop.j3d.loaders.vrml97.VrmlLoader
All Implemented Interfaces:
Loader

public class VrmlLoader
extends LoaderBase

This is an implementation of the Java3D utility loader interface. A VrmlScene can be loaded via URL, filesystem pathname or a Reader. The "base" URL or pathname is the pathname used for relative paths in the WRL. If the base is not specified it will be derived from the main URL or pathname.

Author:
Rick Goldberg, Doug Gehringer, Nikolai V. Chr.
See Also:
VrmlScene, Loader, Scene

Field Summary
 
Fields inherited from class com.sun.j3d.loaders.LoaderBase
basePath, baseUrl, loadFlags
 
Fields inherited from interface com.sun.j3d.loaders.Loader
LOAD_ALL, LOAD_BACKGROUND_NODES, LOAD_BEHAVIOR_NODES, LOAD_FOG_NODES, LOAD_LIGHT_NODES, LOAD_SOUND_NODES, LOAD_VIEW_GROUPS
 
Constructor Summary
VrmlLoader()
          Constructor for the VrmlLoader object Will be setup to load static scene.
VrmlLoader(int flags)
          Constructor for the VrmlLoader object Will be setup to load static scene.
 
Method Summary
 Scene load(Reader reader)
          Description of the Method
 Scene load(String pathname)
          Description of the Method
 Scene load(URL url)
          Description of the Method
 
Methods inherited from class com.sun.j3d.loaders.LoaderBase
getBasePath, getBaseUrl, getFlags, setBasePath, setBaseUrl, setFlags
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VrmlLoader

public VrmlLoader(int flags)
Constructor for the VrmlLoader object Will be setup to load static scene.

Parameters:
flags - These are ignored for the time being.

VrmlLoader

public VrmlLoader()
Constructor for the VrmlLoader object Will be setup to load static scene.

Method Detail

load

public Scene load(Reader reader)
           throws FileNotFoundException,
                  IncorrectFormatException,
                  ParsingErrorException
Description of the Method

Parameters:
reader - Description of the Parameter
Returns:
Description of the Return Value
Throws:
FileNotFoundException - If the file could not be found or opened.
IncorrectFormatException - If a file of an incorrect type was passed.
ParsingErrorException - If a problem was encountered parsing the file.

load

public Scene load(String pathname)
           throws FileNotFoundException,
                  IncorrectFormatException,
                  ParsingErrorException
Description of the Method

Parameters:
pathname - Description of the Parameter
Returns:
Description of the Return Value
Throws:
FileNotFoundException - If the file could not be found or opened.
IncorrectFormatException - If a file of an incorrect type was passed.
ParsingErrorException - If a problem was encountered parsing the file.

load

public Scene load(URL url)
           throws FileNotFoundException,
                  IncorrectFormatException,
                  ParsingErrorException
Description of the Method

Parameters:
url - Description of the Parameter
Returns:
Description of the Return Value
Throws:
FileNotFoundException - If the file could not be found or opened.
IncorrectFormatException - If a file of an incorrect type was passed.
ParsingErrorException - If a problem was encountered parsing the file.

j3d-vrml97-0.1.0

Todo: put BSD License reference here..