| Modifier and Type | Field and Description |
|---|---|
| private boolean | blockRemark
Only valid if insideRemark is true. |
| private char[] | |
| private int | bufferEnd
The position in the buffer of the last available char |
| private int | bufferPos
The position in the buffer of the next char to be read |
| private int | bufferStart
The position in the buffer of the statement start |
| private boolean | endOfFile
True if we have read past the end of file |
| private boolean | insideRemark
True if we are inside a comment |
| private final Reader | |
| private int | remarkStart
The position in buffer of start of comment |
| private boolean | skipRemarks
True if comments should be skipped completely by this reader. |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private void | |
| public void | |
| private void | |
| public boolean | Returns: true if inside a block commentIf currently inside a remark, this method tells if it is a block comment (true) or single line comment (false) |
| public boolean | Returns: true if the current position is inside a remarkCheck if this is the last statement, and if the single line or block comment is not finished yet. |
| private int | |
| private int | |
| public String | |
| private String | |
| public void | setSkipRemarks(boolean
true if comments should be skipped skipRemarks)If comments should be skipped completely by this reader. |
| private void |
| blockRemark | back to summary |
|---|---|
| private boolean blockRemark Only valid if insideRemark is true. True if we are inside a block comment, false if we are inside a line comment | |
| buffer | back to summary |
|---|---|
| private char[] buffer | |
| bufferEnd | back to summary |
|---|---|
| private int bufferEnd The position in the buffer of the last available char | |
| bufferPos | back to summary |
|---|---|
| private int bufferPos The position in the buffer of the next char to be read | |
| bufferStart | back to summary |
|---|---|
| private int bufferStart The position in the buffer of the statement start | |
| endOfFile | back to summary |
|---|---|
| private boolean endOfFile True if we have read past the end of file | |
| insideRemark | back to summary |
|---|---|
| private boolean insideRemark True if we are inside a comment | |
| reader | back to summary |
|---|---|
| private final Reader reader | |
| remarkStart | back to summary |
|---|---|
| private int remarkStart The position in buffer of start of comment | |
| skipRemarks | back to summary |
|---|---|
| private boolean skipRemarks True if comments should be skipped completely by this reader. | |
| ScriptReader | back to summary |
|---|---|
| public ScriptReader(Reader reader) Create a new SQL script reader from the given reader
| |
| clearRemark | back to summary |
|---|---|
| private void clearRemark() | |
| close | back to summary |
|---|---|
| public void close() Implements java. Close the underlying reader.
| |
| endRemark | back to summary |
|---|---|
| private void endRemark() | |
| isBlockRemark | back to summary |
|---|---|
| public boolean isBlockRemark() If currently inside a remark, this method tells if it is a block comment (true) or single line comment (false)
| |
| isInsideRemark | back to summary |
|---|---|
| public boolean isInsideRemark() Check if this is the last statement, and if the single line or block comment is not finished yet.
| |
| read | back to summary |
|---|---|
| private int read() throws IOException | |
| readBuffer | back to summary |
|---|---|
| private int readBuffer() throws IOException | |
| readStatement | back to summary |
|---|---|
| public String readStatement() Read a statement from the reader. This method returns null if the end has been reached.
| |
| readStatementLoop | back to summary |
|---|---|
| private String readStatementLoop() throws IOException | |
| setSkipRemarks | back to summary |
|---|---|
| public void setSkipRemarks(boolean skipRemarks) If comments should be skipped completely by this reader.
| |
| startRemark | back to summary |
|---|---|
| private void startRemark(boolean block) | |