com.jpattern.orm.script
Class StreamParser
java.lang.Object
com.jpattern.orm.script.StreamParser
- All Implemented Interfaces:
- Parser
public class StreamParser
- extends Object
- implements Parser
- Author:
- Francesco Cina
01/lug/2011
Parse a Stream identifying valid sql statement. For every statement found a call
to the IParserCallback is performed.
|
Method Summary |
void |
parse(ParserCallback parserCallback)
Parse the script using the default symbol ";" to identify the sql statements |
void |
parse(ParserCallback parserCallback,
String spearatorSymbol)
Parse the script using a custom symbol to identify the sql statements |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
StreamParser
public StreamParser(InputStream inputStream,
boolean closeInputStream)
StreamParser
public StreamParser(InputStream inputStream,
boolean closeInputStream,
Charset charset)
parse
public void parse(ParserCallback parserCallback)
throws IOException
- Description copied from interface:
Parser
- Parse the script using the default symbol ";" to identify the sql statements
- Specified by:
parse in interface Parser
- Throws:
IOException
parse
public void parse(ParserCallback parserCallback,
String spearatorSymbol)
throws IOException
- Description copied from interface:
Parser
- Parse the script using a custom symbol to identify the sql statements
- Specified by:
parse in interface Parser
spearatorSymbol - a custom separator symbol
- Throws:
IOException
Copyright © 2013. All Rights Reserved.