StreamTokenizer.slashSlashComments

StreamTokenizer.slashSlashComments

Class Overview | Class Members | This Package | All Packages

Syntax
public void slashSlashComments( boolean flag )
Parameters
flag
true indicates to recognize and ignore C++-style comments.
Description
Determines whether or not the tokenizer recognizes C++-style comments. If the flag argument is true, this stream tokenizer recognizes C++-style comments. Any occurrence of two consecutive slash characters ('/') is treated as the beginning of a comment that extends to the end of the line.

If the flag argument is false, then C++-style comments are not treated specially.