org.apache.torque.engine.sql
Class SQLScanner

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

public class SQLScanner
extends java.lang.Object

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

Version:
$Id: SQLScanner.java 473814 2006-11-11 22:30:30Z tv $
Author:
Leon Messerschmidt, Jon S. Stevens, Andreas Andreou

Constructor Summary
SQLScanner()
          Creates a new scanner with no Reader
SQLScanner(java.io.Reader input)
          Creates a new scanner with an Input Reader
 
Method Summary
 java.util.List scan()
          Scan the input Reader and returns a list of tokens.
 void setInput(java.io.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(java.io.Reader input)
Creates a new scanner with an Input Reader

Parameters:
input - the input reader
Method Detail

setInput

public void setInput(java.io.Reader input)
Set the Input

Parameters:
input - the input reader

scan

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

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


Copyright © 2000-2012 Apache Software Foundation. All Rights Reserved.