|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.javatest.finder.CommentStream
public abstract class CommentStream
This class extract all ASCII characters within a block comments. Any leading spaces or comment-like characters are removed.
| Field Summary | |
|---|---|
protected java.io.BufferedReader |
cs
The reader from which to read comments. |
protected boolean |
fastScan
A flag indicating whether comments should be read in "fast scan" mode or not. |
| Constructor Summary | |
|---|---|
CommentStream()
|
|
| Method Summary | |
|---|---|
void |
close()
Close this CommentStream. |
void |
init(java.io.BufferedReader br)
Initialize a CommentStream. |
abstract java.lang.String |
readComment()
Read the next comment from the input reader. |
void |
setFastScan(boolean b)
Set this comment stream into "fast scan" mode. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected java.io.BufferedReader cs
protected boolean fastScan
| Constructor Detail |
|---|
public CommentStream()
| Method Detail |
|---|
public void init(java.io.BufferedReader br)
br - The reader from which to read.
public void close()
throws java.io.IOException
java.io.IOException - if there is a problem closing the stream.public void setFastScan(boolean b)
b - Set to true to enable a fast scan for comments.
public abstract java.lang.String readComment()
throws java.io.IOException
java.io.IOException - if there is a problem while reading the
next comment.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||