public class ReaderBSH extends Object implements SceneReader
a=new Appearance(); a.setAttribute("plogonShader.diffuseColor", new java.awt.Color(77,66,44,72)); root.setAppearance(a); root.setGeometry(new CatenoidHelicoid(10));For security reasons, this reader sets up a SecurityManager and a restricting Policy for the codebase of the bsh.jar URL. For this to work the bsh jar must NOT be in the classpath. Pass the location of the bsh.jar file as System property, i.e.:
-Djreality.bsh.jar=file:///opt/jars/bsh-1.3b2.jar
Constructor and Description |
---|
ReaderBSH() |
Modifier and Type | Method and Description |
---|---|
void |
appendInput(Input input)
process the given Input in the current Instance.
|
SceneGraphComponent |
getComponent()
provides the root component for the scene that was read.
|
void |
processReader(Reader in,
PrintStream out,
PrintStream err) |
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 void appendInput(Input input) throws IOException
input
- the Input to processIOException
public void processReader(Reader in, PrintStream out, PrintStream err) throws Exception
Exception
public SceneGraphComponent getComponent()
SceneReader
getComponent
in interface SceneReader