org.w3c.rdfpic.core
Class SimpleToken

java.lang.Object
  |
  +--org.w3c.rdfpic.core.SimpleToken

class SimpleToken
extends java.lang.Object

A really simple "tokenizer". It helps somewhat. Maybe.


Field Summary
(package private) static char bufsize
           
(package private)  char[] cbuf
           
(package private)  char current
           
(package private)  boolean end
           
(package private)  java.io.BufferedReader in
           
(package private)  int index
           
(package private)  char[] specials
           
(package private)  char stringDelim
           
(package private)  char[] whites
           
 
Constructor Summary
SimpleToken(char[] whites, char[] specials, char stringDelim, java.io.BufferedReader in)
           
 
Method Summary
private  boolean isSpecial()
           
private  boolean isWhite()
           
 java.lang.String nextToken()
           
private  boolean read()
           
private  boolean reload()
           
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

specials

char[] specials

whites

char[] whites

stringDelim

char stringDelim

in

java.io.BufferedReader in

bufsize

static final char bufsize

cbuf

char[] cbuf

index

int index

current

char current

end

boolean end
Constructor Detail

SimpleToken

public SimpleToken(char[] whites,
                   char[] specials,
                   char stringDelim,
                   java.io.BufferedReader in)
Method Detail

isSpecial

private boolean isSpecial()

isWhite

private boolean isWhite()

read

private boolean read()

reload

private boolean reload()

nextToken

public java.lang.String nextToken()