< prev index next >

src/java.desktop/share/classes/javax/swing/text/rtf/RTFReader.java

Print this page

        

@@ -32,13 +32,13 @@
 import java.security.PrivilegedAction;
 import javax.swing.text.*;
 
 /**
  * Takes a sequence of RTF tokens and text and appends the text
- * described by the RTF to a <code>StyledDocument</code> (the <em>target</em>).
+ * described by the RTF to a {@code StyledDocument} (the <em>target</em>).
  * The RTF is lexed
- * from the character stream by the <code>RTFParser</code> which is this class's
+ * from the character stream by the {@code RTFParser} which is this class's
  * superclass.
  *
  * This class is an indirect subclass of OutputStream. It must be closed
  * in order to guarantee that all of the text has been sent to
  * the text acceptor.

@@ -75,11 +75,11 @@
 
   /** This is the RTF version number, extracted from the \rtf keyword.
    *  The version information is currently not used. */
   int rtfversion;
 
-  /** <code>true</code> to indicate that if the next keyword is unknown,
+  /** {@code true} to indicate that if the next keyword is unknown,
    *  the containing group should be ignored. */
   boolean ignoreGroupIfUnknownKeyword;
 
   /** The parameter of the most recently parsed \\ucN keyword,
    *  used for skipping alternative representations after a

@@ -202,11 +202,11 @@
 {
     return Color.black;
 }
 
 /** Called by the superclass when a new RTF group is begun.
- *  This implementation saves the current <code>parserState</code>, and gives
+ *  This implementation saves the current {@code parserState}, and gives
  *  the current destination a chance to save its own state.
  * @see RTFParser#begingroup
  */
 public void begingroup()
 {

@@ -229,11 +229,11 @@
     if (rtfDestination != null)
         rtfDestination.begingroup();
 }
 
 /** Called by the superclass when the current RTF group is closed.
- *  This restores the parserState saved by <code>begingroup()</code>
+ *  This restores the parserState saved by {@code begingroup()}
  *  as well as invoking the endgroup method of the current
  *  destination.
  * @see RTFParser#endgroup
  */
 public void endgroup()

@@ -1531,11 +1531,11 @@
  */
 abstract class TextHandlingDestination
     extends AttributeTrackingDestination
     implements Destination
 {
-    /** <code>true</code> if the reader has not just finished
+    /** {@code true} if the reader has not just finished
      *  a paragraph; false upon startup */
     boolean inParagraph;
 
     public TextHandlingDestination()
     {

@@ -1600,11 +1600,11 @@
     abstract void endSection();
 }
 
 /** RTFReader.DocumentDestination is a concrete subclass of
  *  TextHandlingDestination which appends the text to the
- *  StyledDocument given by the <code>target</code> ivar of the
+ *  StyledDocument given by the {@code target} ivar of the
  *  containing RTFReader.
  */
 class DocumentDestination
     extends TextHandlingDestination
     implements Destination
< prev index next >