org.primordion.xholon.io.vrml
Class VrmlBuffer

java.lang.Object
  extended byorg.primordion.xholon.io.vrml.VrmlBuffer

public class VrmlBuffer
extends java.lang.Object

VRML Buffer. VRML data is accumulated in the buffer before being written to a file.

Since:
0.1 (Created on Oct 25, 2005)
Author:
Ken Webb

Constructor Summary
VrmlBuffer()
          Constructor.
 
Method Summary
 java.lang.String get()
          Get the internal buffer.
 void init()
          Initialize the internal buffer.
 void write(double double1)
          Append a double to the internal buffer.
 void write(double double1, double double2)
          Append two double to the internal buffer, separated by a space.
 void write(double double1, double double2, double double3)
          Append three double to the internal buffer, separated by a space.
 void write(int int1)
          Append an int to the internal buffer.
 void write(int int1, int int2)
          Append two int to the internal buffer, separated by a space.
 void write(int int1, int int2, int int3)
          Append three int to the internal buffer, separated by spaces.
 void write(java.lang.String s)
          Append a string to the internal buffer.
 void writeDefNodeName(java.lang.String nodeName)
          Write the node name to the internal buffer, as a VRML DEF.
 void writeNodeName(java.lang.String nodeName)
          Write the node name to the internal buffer.
 void writeQuote()
          Write a double quote character to the internal buffer.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VrmlBuffer

public VrmlBuffer()
Constructor.

Method Detail

init

public void init()
Initialize the internal buffer.


get

public java.lang.String get()
Get the internal buffer.

Returns:
The internal buffer.

write

public void write(java.lang.String s)
Append a string to the internal buffer.

Parameters:
s - The string to append.

write

public void write(int int1)
Append an int to the internal buffer.

Parameters:
int1 - The int to append.

write

public void write(int int1,
                  int int2)
Append two int to the internal buffer, separated by a space.

Parameters:
int1 - The first int.
int2 - The second int.

write

public void write(int int1,
                  int int2,
                  int int3)
Append three int to the internal buffer, separated by spaces.

Parameters:
int1 - The first int.
int2 - The second int.
int3 - The third int.

write

public void write(double double1)
Append a double to the internal buffer.

Parameters:
double1 - The double to append.

write

public void write(double double1,
                  double double2)
Append two double to the internal buffer, separated by a space.

Parameters:
double1 - The first double.
double2 - The second double.

write

public void write(double double1,
                  double double2,
                  double double3)
Append three double to the internal buffer, separated by a space.

Parameters:
double1 - The first double.
double2 - The second double.
double3 - The third double.

writeQuote

public void writeQuote()
Write a double quote character to the internal buffer.


writeNodeName

public void writeNodeName(java.lang.String nodeName)
Write the node name to the internal buffer. Should pass in just name (ex: enzyme_123)

Parameters:
nodeName - The node name.

writeDefNodeName

public void writeDefNodeName(java.lang.String nodeName)
Write the node name to the internal buffer, as a VRML DEF.

Parameters:
nodeName - The node name.