org.apache.torque.engine.sql
Class SQLScanner

java.lang.Object
  extended by org.apache.torque.engine.sql.SQLScanner

public class SQLScanner
extends Object

A simple Scanner implementation that scans an sql file into usable tokens. Used by SQLToAppData.

Version:
$Id: SQLScanner.java,v 1.1 2007-10-21 07:57:27 abyrne Exp $
Author:
Leon Messerschmidt, Jon S. Stevens, Andreas Andreou

Constructor Summary
SQLScanner()
          Creates a new scanner with no Reader
SQLScanner(Reader input)
          Creates a new scanner with an Input Reader
 
Method Summary
 List scan()
          Scan the input Reader and returns a list of tokens.
 void setInput(Reader input)
          Set the Input
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SQLScanner

public SQLScanner()
Creates a new scanner with no Reader


SQLScanner

public SQLScanner(Reader input)
Creates a new scanner with an Input Reader

Parameters:
input - the input reader
Method Detail

setInput

public void setInput(Reader input)
Set the Input

Parameters:
input - the input reader

scan

public List scan()
          throws IOException
Scan the input Reader and returns a list of tokens.

Returns:
a list of tokens
Throws:
IOException - If an I/O error occurs


Copyright © 2004-2012 The Kuali Foundation. All Rights Reserved.