public class ScriptReader extends Object
| Constructor and Description |
|---|
ScriptReader(Reader reader)
Create a new SQL script reader from the given reader
|
ScriptReader(String string) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Close the underlying reader.
|
boolean |
isBlockRemark()
If currently inside a remark, this method tells if it is a block comment
(true) or single line comment (false)
|
boolean |
isInsideRemark()
Check if this is the last statement, and if the single line or block
comment is not finished yet.
|
String |
readStatement()
Read a statement from the reader.
|
void |
setRewrite(boolean rewrite) |
public ScriptReader(Reader reader)
reader - the readerpublic ScriptReader(String string)
public void close()
throws IOException
IOExceptionpublic String readStatement() throws IOException
IOExceptionpublic boolean isInsideRemark()
public boolean isBlockRemark()
public void setRewrite(boolean rewrite)
Copyright © 2018 JBoss by Red Hat. All rights reserved.