org.apache.jetspeed.tools.migration
Class SQLScriptReader

java.lang.Object
  extended by org.apache.jetspeed.tools.migration.SQLScriptReader

public class SQLScriptReader
extends java.lang.Object

SQL Script Reader

Version:
$Id$
Author:
Randy Watler

Constructor Summary
SQLScriptReader(java.io.File scriptFile)
          Construct reader for SQL script file.
SQLScriptReader(java.io.InputStream scriptStream)
          Construct reader for SQL script stream.
 
Method Summary
 void close()
          Close reader.
 java.lang.String readSQLStatement()
          Read next SQL statement from script file.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SQLScriptReader

public SQLScriptReader(java.io.InputStream scriptStream)
                throws java.io.FileNotFoundException
Construct reader for SQL script stream.

Parameters:
scriptStream - script stream
Throws:
java.io.FileNotFoundException

SQLScriptReader

public SQLScriptReader(java.io.File scriptFile)
                throws java.io.FileNotFoundException
Construct reader for SQL script file.

Parameters:
scriptFile - script file
Throws:
java.io.FileNotFoundException
Method Detail

readSQLStatement

public java.lang.String readSQLStatement()
                                  throws java.io.IOException
Read next SQL statement from script file.

Returns:
read SQL statement
Throws:
java.io.IOException

close

public void close()
           throws java.io.IOException
Close reader.

Throws:
java.io.IOException


Copyright © 1999-2011 The Apache Software Foundation. All Rights Reserved.