j3d-vrml97-0.1.0

org.jdesktop.j3d.loaders.vrml97.impl
Class Loader

java.lang.Object
  extended by org.jdesktop.j3d.loaders.vrml97.impl.Loader

public class Loader
extends Object

Description of the Class


Field Summary
static int LOAD_CONFORMANT
          Description of the Field
static int LOAD_OPTIMIZED
          Description of the Field
static int LOAD_STATIC
          Description of the Field
 
Constructor Summary
Loader(Browser browser)
          Constructor for the Loader object
Loader(Browser initBrowser, int loadMode)
          Constructor for the Loader object
 
Method Summary
 Scene load(InputStream is)
          Description of the Method
 Scene load(Reader reader)
          Description of the Method
 Scene load(URL worldURL)
          Description of the Method
 void loadProto(String urlString, String protoName, Vector protoFields)
          Description of the Method
 Script newScriptInstanceFromClassName(String scriptClassName)
          Description of the Method
 void setWorldURL(URL baseURL, URL worldURL)
          Sets the worldURL attribute of the Loader object
 URL stringToURL(String urlString)
          Description of the Method
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LOAD_STATIC

public static final int LOAD_STATIC
Description of the Field

See Also:
Constant Field Values

LOAD_OPTIMIZED

public static final int LOAD_OPTIMIZED
Description of the Field

See Also:
Constant Field Values

LOAD_CONFORMANT

public static final int LOAD_CONFORMANT
Description of the Field

See Also:
Constant Field Values
Constructor Detail

Loader

public Loader(Browser initBrowser,
              int loadMode)
Constructor for the Loader object

Parameters:
initBrowser - Description of the Parameter
loadMode - Description of the Parameter

Loader

public Loader(Browser browser)
Constructor for the Loader object

Parameters:
browser - Description of the Parameter
Method Detail

setWorldURL

public void setWorldURL(URL baseURL,
                        URL worldURL)
                 throws MalformedURLException
Sets the worldURL attribute of the Loader object

Parameters:
baseURL - The new worldURL value
worldURL - The new worldURL value
Throws:
MalformedURLException - Either no legal protocol could be found in one of the urls or one could not be parsed.

load

public Scene load(URL worldURL)
           throws IOException,
                  InvalidVRMLSyntaxException
Description of the Method

Parameters:
worldURL - Description of the Parameter
Returns:
Description of the Return Value
Throws:
IOException - If the file could not be opened.
InvalidVRMLSyntaxException - If there was a problem unzipping or parsing.

load

public Scene load(InputStream is)
           throws InvalidVRMLSyntaxException
Description of the Method

Parameters:
is - Description of the Parameter
Returns:
Description of the Return Value
Throws:
InvalidVRMLSyntaxException - If there was a problem unzipping or parsing.

load

public Scene load(Reader reader)
           throws InvalidVRMLSyntaxException
Description of the Method

Parameters:
reader - Description of the Parameter
Returns:
Description of the Return Value
Throws:
InvalidVRMLSyntaxException - If there was a problem parsing.

stringToURL

public URL stringToURL(String urlString)
                throws MalformedURLException
Description of the Method

Parameters:
urlString - Description of the Parameter
Returns:
Description of the Return Value
Throws:
MalformedURLException - Either no legal protocol could be found in a specification string or the string could not be parsed.

loadProto

public void loadProto(String urlString,
                      String protoName,
                      Vector protoFields)
               throws IOException,
                      MalformedURLException,
                      ParseException
Description of the Method

Parameters:
urlString - Description of the Parameter
protoName - Description of the Parameter
protoFields - Description of the Parameter
Throws:
IOException - If the proto could not be opened.
MalformedURLException - Either no legal protocol could be found in urlString or it could not be parsed.
ParseException - If there was a problem parsing.

newScriptInstanceFromClassName

public Script newScriptInstanceFromClassName(String scriptClassName)
                                      throws IllegalAccessException,
                                             InstantiationException,
                                             ClassNotFoundException
Description of the Method

Parameters:
scriptClassName - Description of the Parameter
Returns:
Description of the Return Value
Throws:
IllegalAccessException - No access to the definition of the specified class.
InstantiationException - There was a problem making an instance of the class.
ClassNotFoundException - The class was not found.

j3d-vrml97-0.1.0

Todo: put BSD License reference here..