j3d.org Code

org.j3d.renderer.java3d.loaders
Interface BinaryLoader

All Superinterfaces:
com.sun.j3d.loaders.Loader
All Known Implementing Classes:
BTLoader, DEMLoader

public interface BinaryLoader
extends com.sun.j3d.loaders.Loader

Extension of the Sun Loader definition interface that provides extra methods for loading InputStream.

Version:
$Revision: 1.2 $
Author:
Justin Couch

Field Summary
 
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
 
Method Summary
 com.sun.j3d.loaders.Scene load(java.io.InputStream is)
          This method loads the InputStream and returns the Scene containing the scene.
 
Methods inherited from interface com.sun.j3d.loaders.Loader
getBasePath, getBaseUrl, getFlags, load, load, load, setBasePath, setBaseUrl, setFlags
 

Method Detail

load

public com.sun.j3d.loaders.Scene load(java.io.InputStream is)
                               throws java.io.IOException,
                                      com.sun.j3d.loaders.IncorrectFormatException,
                                      com.sun.j3d.loaders.ParsingErrorException
This method loads the InputStream and returns the Scene containing the scene. Any data files referenced by the Reader should be located in the user's current working directory or the directory specified by the base path.

Parameters:
is - The stream to read the file data from
Returns:
The scene that represents the file content
Throws:
java.io.IOException - An I/O error while reading the data
com.sun.j3d.loaders.IncorrectFormatException - The file format is not of this type
com.sun.j3d.loaders.ParsingErrorException - Syntax and/or semantic parsing problems

j3d.org Code

Latest Info from http://code.j3d.org/
Copyright © 2001 - j3d.org