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
SceneReader
setInput
in interface SceneReader
input
- the Input of the resource to read.IOException
public SceneGraphComponent getComponent()
SceneReader
getComponent
in interface SceneReader
public SceneGraphComponent read(Input input) throws IOException
input
- the inputIOException
public SceneGraphComponent read(URL input) throws IOException
input
- the input URLIOException
public SceneGraphComponent read(File input) throws IOException
input
- the input fileIOException