org.apache.myfaces.buildtools.maven2.plugin.javascript.uixtools
Class Tokenizer

java.lang.Object
  extended by org.apache.myfaces.buildtools.maven2.plugin.javascript.uixtools.Tokenizer
All Implemented Interfaces:
TokenReader

public class Tokenizer
extends java.lang.Object
implements TokenReader

A Tokenizer for JavaScript source files.

Version:
$Name: $ ($Revision: 606225 $) $Date: 2007-12-21 16:55:00 +0100 (Fr, 21 Dez 2007) $

Constructor Summary
Tokenizer(java.io.BufferedReader in)
           
 
Method Summary
 Token read()
          reads a Token.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Tokenizer

public Tokenizer(java.io.BufferedReader in)
Parameters:
in - used to read data from the JS file
Method Detail

read

public Token read()
           throws java.io.IOException,
                  java.lang.InterruptedException
reads a Token. blocks until a Token is available.

Specified by:
read in interface TokenReader
Returns:
null if the EOF is reached.
Throws:
java.io.IOException
java.lang.InterruptedException


Copyright © 2001-2009 Apache Software Foundation. All Rights Reserved.