|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectjava.io.Reader
java.io.BufferedReader
org.objectweb.cjdbc.scenario.tools.util.MyBufferedReader
I/O utilitary method.
| Field Summary | |
private static java.lang.String |
BEGIN_REQUEST
Begin request token. |
private static java.lang.String |
END_REQUEST
End request token. |
private java.lang.String |
fileDescription
File title (eg: 'requests'). |
| Fields inherited from class java.io.BufferedReader |
|
| Fields inherited from class java.io.Reader |
lock |
| Constructor Summary | |
MyBufferedReader(java.io.Reader reader,
java.lang.String description)
Creates a new MyBufferedReader instance. |
|
| Method Summary | |
boolean |
readBoolean()
Convenient method to read a boolean value in a text file. |
java.lang.String |
readNextLine()
Get the next non-commented line |
java.lang.String |
readSQLRequest(java.lang.String line)
Convenient method to read a SQL request in a text file. |
java.lang.String |
readString(java.lang.String stringName)
Convenient method to read a Strong value in a text file. |
| Methods inherited from class java.io.BufferedReader |
close, mark, markSupported, read, read, readLine, ready, reset, skip |
| Methods inherited from class java.io.Reader |
read |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
private static final java.lang.String BEGIN_REQUEST
private static final java.lang.String END_REQUEST
private java.lang.String fileDescription
| Constructor Detail |
public MyBufferedReader(java.io.Reader reader,
java.lang.String description)
MyBufferedReader instance.
reader - a Reader instance.description - description text.| Method Detail |
public boolean readBoolean()
throws java.io.IOException
boolean read.
java.io.IOException - if error occurs.
public java.lang.String readString(java.lang.String stringName)
throws java.io.IOException
Strong value in a text file.
stringName - name of the property to read.
String read.
java.io.IOException - if error occurs.
public java.lang.String readSQLRequest(java.lang.String line)
throws java.io.IOException
BEGIN_REQUESTand END_REQUEST
tokens.
line - text file line.
String read.
java.io.IOException - if error occurs.
public java.lang.String readNextLine()
throws java.io.IOException
java.io.IOException - if error occurs
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||