Class JavaCommentStream


  • public class JavaCommentStream
    extends CommentStream
    This class extracts all ASCII characters within two of Java's comments: traditional comments (bound by "/*" and "*\/") and documentation comments (bound by "/**" and "*\/"). The comment may span multiple lines. All leading "*" characters and any preceding blanks or tabs are ignored.
    See Also:
    CommentStream
    • Constructor Detail

      • JavaCommentStream

        public JavaCommentStream()
    • Method Detail

      • readComment

        public java.lang.String readComment()
                                     throws java.io.IOException
        Description copied from class: CommentStream
        Read the next comment from the input reader.
        Specified by:
        readComment in class CommentStream
        Returns:
        The next comment that is read from the stream.
        Throws:
        java.io.IOException - if there is a problem while reading the next comment.