BenQ Mobile

javax.microedition.m3g
Class Loader

java.lang.Object
  extended byjavax.microedition.m3g.Loader

public class Loader
extends java.lang.Object

Downloads and deserializes scene graph nodes and node components, as well as entire scene graphs. Downloading ready-made pieces of 3D content from an M3G file is generally the most convenient way for an application to create and populate a 3D scene.


Method Summary
static Object3D[] load(byte[] data, int offset)
          Deserializes Object3D instances from the given byte array, starting at the given offset.
static Object3D[] load(java.lang.String name)
          Deserializes Object3D instances from the named resource.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

load

public static Object3D[] load(java.lang.String name)
                       throws java.io.IOException
Deserializes Object3D instances from the named resource.

Throws:
java.io.IOException

load

public static Object3D[] load(byte[] data,
                              int offset)
                       throws java.io.IOException
Deserializes Object3D instances from the given byte array, starting at the given offset.

Throws:
java.io.IOException

BenQ Mobile

Copyright © 2006 BenQ Mobile GmbH & Co. OHG or respective copyright owner.
All Rights Reserved.
BenQ Corp. is a trademark licensee of Siemens AG.


For further information about Mobility Toolkit (MTK) visit our Developer Portal.