|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.jreality.reader.AbstractReader
public abstract class AbstractReader
Abstract class for a SceneReader. Implement setInput so that the Input is processed and the component assigned to root.
Constructor Summary | |
---|---|
AbstractReader()
|
Method Summary | |
---|---|
SceneGraphComponent |
getComponent()
provides the root component for the scene that was read. |
SceneGraphComponent |
read(java.io.File input)
convenience method for reading a File. |
SceneGraphComponent |
read(Input input)
convenience method for reading from an Input. |
SceneGraphComponent |
read(java.net.URL input)
convenience method for reading from a URL. |
void |
setInput(Input input)
set the input to read the scene from |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AbstractReader()
Method Detail |
---|
public void setInput(Input input) throws java.io.IOException
SceneReader
setInput
in interface SceneReader
input
- the Input of the resource to read.
java.io.IOException
public SceneGraphComponent getComponent()
SceneReader
getComponent
in interface SceneReader
public SceneGraphComponent read(Input input) throws java.io.IOException
input
- the input
java.io.IOException
public SceneGraphComponent read(java.net.URL input) throws java.io.IOException
input
- the input URL
java.io.IOException
public SceneGraphComponent read(java.io.File input) throws java.io.IOException
input
- the input file
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |