Package java.io
Class StreamTokenizer

Public Method slashSlashComments

void slashSlashComments(boolean flag)

_INSERT_METHOD_SIGNATURE_HERE_

Description:

This method 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 line. If the flag argument is false, then C++-style comments are not treated specially.

Example

   File file = new File("testFile");
   InputStream is = new FileInputStream(file);
   StreamTokenizer st = new StreamTokenizer(is);
   ...
   st.slashSlashComments(true);

The example above sets up the stream tokenizer to recognize C++-style comments.