|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Loads an object model given an URL reference to a model, or a string form of that model.
Method Summary | |
boolean |
canLoad(String kind)
Indicate whether the model loader can handle a particular file kind. |
Object |
load(URL modelUrl)
Load a model from the passed URL. |
Object |
load(URL modelUrl,
String kind)
Load a model from the passed URL. |
Object |
loadFromString(String serializedModel,
String kind)
Load a model from a String representation of that model |
Method Detail |
public Object load(URL modelUrl) throws IOException
modelUrl
- a URL referencing the model to load
IOException
- if an error occurs while loading the model.public Object load(URL modelUrl, String kind) throws IOException
modelUrl
- a URL referencing the model to loadkind
- the kind of file (extension) that should be used to contain this content.
IOException
- if an error occurs while loading the model.public Object loadFromString(String serializedModel, String kind) throws IOException
serializedModel
- the String form of the model. Will not be null
.kind
- the kind of file (extension) that would be used to contain this content.
IOException
- if an error occurs while loading the model.public boolean canLoad(String kind)
kind
- the file kind (extension)
true
if the loader can load this kind of file, false
otherwise.
|
Copyright 2006 IBM Corporation and others. All Rights Reserved. |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |