Bouncy Castle Rendering Toolkit 1.0

org.bouncycastle.graphics.rt.tools.io
Class RMLReader

java.lang.Object
  |
  +--java.io.Reader
        |
        +--java.io.BufferedReader
              |
              +--org.bouncycastle.graphics.rt.tools.io.RMLReader

public class RMLReader
extends java.io.BufferedReader

a buffered reader that parsers JML files.


Field Summary
static int BEGIN_TAG
           
static int CDATA_SECTION
           
static int COMMENT
           
static int DOC_TYPE
           
static int EMPTY_TAG
           
static int END_TAG
           
static int EOF
           
static int PCDATA
           
static int PROCESSING_INSTRUCTION
           
 
Fields inherited from class java.io.Reader
lock
 
Constructor Summary
RMLReader(java.io.Reader in)
           
 
Method Summary
 Transform getTransform()
          return the documents idea of the current transform.
 int lineCount()
          return the current line number for the input stream
 ParametersMap parameters()
          return the parameters associated with the last BEGIN_TAG or EMPTY_TAG read.
 int readNext()
          read in the next token, returning its type value.
 java.lang.Object readObject()
          read an object from the RML stream.
 void setTransform(Transform t)
          set the current shader for the objects we are about to parse.
 void skipToEndTag(java.lang.String tagName)
          skip to the next end tag representing the close of this tag
 int token()
          return the current token type value
 java.lang.String toString()
          return the string value of what the current token represents
 
Methods inherited from class java.io.BufferedReader
close, mark, markSupported, read, read, readLine, ready, reset, skip
 
Methods inherited from class java.io.Reader
read
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

EOF

public static int EOF

PROCESSING_INSTRUCTION

public static int PROCESSING_INSTRUCTION

DOC_TYPE

public static int DOC_TYPE

CDATA_SECTION

public static int CDATA_SECTION

COMMENT

public static int COMMENT

BEGIN_TAG

public static int BEGIN_TAG

END_TAG

public static int END_TAG

EMPTY_TAG

public static int EMPTY_TAG

PCDATA

public static int PCDATA
Constructor Detail

RMLReader

public RMLReader(java.io.Reader in)
Method Detail

readNext

public int readNext()
             throws java.io.IOException
read in the next token, returning its type value.

parameters

public ParametersMap parameters()
return the parameters associated with the last BEGIN_TAG or EMPTY_TAG read.

toString

public java.lang.String toString()
return the string value of what the current token represents
Overrides:
toString in class java.lang.Object

token

public int token()
return the current token type value

lineCount

public int lineCount()
return the current line number for the input stream

skipToEndTag

public void skipToEndTag(java.lang.String tagName)
                  throws java.io.IOException
skip to the next end tag representing the close of this tag

getTransform

public Transform getTransform()
return the documents idea of the current transform.

setTransform

public void setTransform(Transform t)
set the current shader for the objects we are about to parse.

readObject

public java.lang.Object readObject()
                            throws java.io.IOException
read an object from the RML stream.

Bouncy Castle Rendering Toolkit 1.0