public abstract class AbstractReader extends Object implements SceneReader
| Constructor and Description |
|---|
AbstractReader() |
| Modifier and Type | Method and Description |
|---|---|
SceneGraphComponent |
getComponent()
provides the root component for the scene that was read.
|
SceneGraphComponent |
read(File input)
convenience method for reading a File.
|
SceneGraphComponent |
read(Input input)
convenience method for reading from an Input.
|
SceneGraphComponent |
read(URL input)
convenience method for reading from a URL.
|
void |
setInput(Input input)
set the input to read the scene from
|
public void setInput(Input input) throws IOException
SceneReadersetInput in interface SceneReaderinput - the Input of the resource to read.IOExceptionpublic SceneGraphComponent getComponent()
SceneReadergetComponent in interface SceneReaderpublic SceneGraphComponent read(Input input) throws IOException
input - the inputIOExceptionpublic SceneGraphComponent read(URL input) throws IOException
input - the input URLIOExceptionpublic SceneGraphComponent read(File input) throws IOException
input - the input fileIOException