Class JCommentFormatter


  • public final class JCommentFormatter
    extends java.lang.Object
    A class to format comments.
    Since:
    1.1
    Version:
    $Revision: 6668 $ $Date: 2005-05-08 12:32:06 -0600 (Sun, 08 May 2005) $
    Author:
    Ralf Joachim
    • Constructor Summary

      Constructors 
      Constructor Description
      JCommentFormatter​(java.lang.String comment, int maxLength, java.lang.String prefix)
      Creates a new LineFormatter for the given comment.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean hasMoreLines()  
      java.lang.String nextLine()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • JCommentFormatter

        public JCommentFormatter​(java.lang.String comment,
                                 int maxLength,
                                 java.lang.String prefix)
        Creates a new LineFormatter for the given comment.
        Parameters:
        comment - The String to format.
        maxLength - The maximum number of characters per line.
        prefix - A prefix to append to the beginning of each line.
    • Method Detail

      • hasMoreLines

        public boolean hasMoreLines()
      • nextLine

        public java.lang.String nextLine()