j3d-vrml97-0.1.0

org.jdesktop.j3d.loaders.vrml97.impl
Class VrmlCharStream

java.lang.Object
  extended by org.jdesktop.j3d.loaders.vrml97.impl.VrmlCharStream

public final class VrmlCharStream
extends Object

An implementation of interface CharStream, where the stream is assumed to contain only ASCII characters (without unicode processing).


Field Summary
 int bufpos
          Description of the Field
static boolean staticFlag
          Description of the Field
 
Constructor Summary
VrmlCharStream(InputStream dstream, int startline, int startcolumn)
          Constructor for the VrmlCharStream object
VrmlCharStream(InputStream dstream, int startline, int startcolumn, int buffersize)
          Constructor for the VrmlCharStream object
VrmlCharStream(Reader dstream, int startline, int startcolumn)
          Constructor for the VrmlCharStream object
VrmlCharStream(Reader dstream, int startline, int startcolumn, int buffersize)
          Constructor for the VrmlCharStream object
 
Method Summary
 void adjustBeginLineColumn(int newLine, int newCol)
          Method to adjust line and column numbers for the start of a token.
 void backup(int amount)
          Description of the Method
 char BeginToken()
          Description of the Method
 void Done()
          Description of the Method
 int getBeginColumn()
          Gets the beginColumn attribute of the VrmlCharStream object
 int getBeginLine()
          Gets the beginLine attribute of the VrmlCharStream object
 int getColumn()
          Deprecated.  
 int getEndColumn()
          Gets the endColumn attribute of the VrmlCharStream object
 int getEndLine()
          Gets the endLine attribute of the VrmlCharStream object
 String GetImage()
          Description of the Method
 int getLine()
          Deprecated.  
 char[] GetSuffix(int len)
          Description of the Method
 char readChar()
          Description of the Method
 void ReInit(InputStream dstream, int startline, int startcolumn)
          Description of the Method
 void ReInit(InputStream dstream, int startline, int startcolumn, int buffersize)
          Description of the Method
 void ReInit(Reader dstream, int startline, int startcolumn)
          Description of the Method
 void ReInit(Reader dstream, int startline, int startcolumn, int buffersize)
          Description of the Method
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

staticFlag

public static final boolean staticFlag
Description of the Field

See Also:
Constant Field Values

bufpos

public int bufpos
Description of the Field

Constructor Detail

VrmlCharStream

public VrmlCharStream(Reader dstream,
                      int startline,
                      int startcolumn,
                      int buffersize)
Constructor for the VrmlCharStream object

Parameters:
dstream - Description of the Parameter
startline - Description of the Parameter
startcolumn - Description of the Parameter
buffersize - Description of the Parameter

VrmlCharStream

public VrmlCharStream(Reader dstream,
                      int startline,
                      int startcolumn)
Constructor for the VrmlCharStream object

Parameters:
dstream - Description of the Parameter
startline - Description of the Parameter
startcolumn - Description of the Parameter

VrmlCharStream

public VrmlCharStream(InputStream dstream,
                      int startline,
                      int startcolumn,
                      int buffersize)
Constructor for the VrmlCharStream object

Parameters:
dstream - Description of the Parameter
startline - Description of the Parameter
startcolumn - Description of the Parameter
buffersize - Description of the Parameter

VrmlCharStream

public VrmlCharStream(InputStream dstream,
                      int startline,
                      int startcolumn)
Constructor for the VrmlCharStream object

Parameters:
dstream - Description of the Parameter
startline - Description of the Parameter
startcolumn - Description of the Parameter
Method Detail

BeginToken

public final char BeginToken()
                      throws IOException
Description of the Method

Returns:
Description of the Return Value
Throws:
IOException - Description of the Exception

readChar

public final char readChar()
                    throws IOException
Description of the Method

Returns:
Description of the Return Value
Throws:
IOException - Description of the Exception

getColumn

public final int getColumn()
Deprecated. 

Returns:
The column value
See Also:
getEndColumn()

getLine

public final int getLine()
Deprecated. 

Returns:
The line value
See Also:
getEndLine()

getEndColumn

public final int getEndColumn()
Gets the endColumn attribute of the VrmlCharStream object

Returns:
The endColumn value

getEndLine

public final int getEndLine()
Gets the endLine attribute of the VrmlCharStream object

Returns:
The endLine value

getBeginColumn

public final int getBeginColumn()
Gets the beginColumn attribute of the VrmlCharStream object

Returns:
The beginColumn value

getBeginLine

public final int getBeginLine()
Gets the beginLine attribute of the VrmlCharStream object

Returns:
The beginLine value

backup

public final void backup(int amount)
Description of the Method

Parameters:
amount - Description of the Parameter

ReInit

public void ReInit(Reader dstream,
                   int startline,
                   int startcolumn,
                   int buffersize)
Description of the Method

Parameters:
dstream - Description of the Parameter
startline - Description of the Parameter
startcolumn - Description of the Parameter
buffersize - Description of the Parameter

ReInit

public void ReInit(Reader dstream,
                   int startline,
                   int startcolumn)
Description of the Method

Parameters:
dstream - Description of the Parameter
startline - Description of the Parameter
startcolumn - Description of the Parameter

ReInit

public void ReInit(InputStream dstream,
                   int startline,
                   int startcolumn,
                   int buffersize)
Description of the Method

Parameters:
dstream - Description of the Parameter
startline - Description of the Parameter
startcolumn - Description of the Parameter
buffersize - Description of the Parameter

ReInit

public void ReInit(InputStream dstream,
                   int startline,
                   int startcolumn)
Description of the Method

Parameters:
dstream - Description of the Parameter
startline - Description of the Parameter
startcolumn - Description of the Parameter

GetImage

public final String GetImage()
Description of the Method

Returns:
Description of the Return Value

GetSuffix

public final char[] GetSuffix(int len)
Description of the Method

Parameters:
len - Description of the Parameter
Returns:
Description of the Return Value

Done

public void Done()
Description of the Method


adjustBeginLineColumn

public void adjustBeginLineColumn(int newLine,
                                  int newCol)
Method to adjust line and column numbers for the start of a token.

Parameters:
newLine - Description of the Parameter
newCol - Description of the Parameter

j3d-vrml97-0.1.0

Todo: put BSD License reference here..