< prev index next >

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

Print this page

        

*** 32,44 **** 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>). * The RTF is lexed ! * from the character stream by the <code>RTFParser</code> 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. --- 32,44 ---- 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} (the <em>target</em>). * The RTF is lexed ! * 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,85 **** /** 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, * the containing group should be ignored. */ boolean ignoreGroupIfUnknownKeyword; /** The parameter of the most recently parsed \\ucN keyword, * used for skipping alternative representations after a --- 75,85 ---- /** This is the RTF version number, extracted from the \rtf keyword. * The version information is currently not used. */ int rtfversion; ! /** {@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,212 **** { return Color.black; } /** Called by the superclass when a new RTF group is begun. ! * This implementation saves the current <code>parserState</code>, and gives * the current destination a chance to save its own state. * @see RTFParser#begingroup */ public void begingroup() { --- 202,212 ---- { return Color.black; } /** Called by the superclass when a new RTF group is begun. ! * 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,239 **** 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> * as well as invoking the endgroup method of the current * destination. * @see RTFParser#endgroup */ public void endgroup() --- 229,239 ---- if (rtfDestination != null) rtfDestination.begingroup(); } /** Called by the superclass when the current RTF group is closed. ! * 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,1541 **** */ abstract class TextHandlingDestination extends AttributeTrackingDestination implements Destination { ! /** <code>true</code> if the reader has not just finished * a paragraph; false upon startup */ boolean inParagraph; public TextHandlingDestination() { --- 1531,1541 ---- */ abstract class TextHandlingDestination extends AttributeTrackingDestination implements Destination { ! /** {@code true} if the reader has not just finished * a paragraph; false upon startup */ boolean inParagraph; public TextHandlingDestination() {
*** 1600,1610 **** 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 * containing RTFReader. */ class DocumentDestination extends TextHandlingDestination implements Destination --- 1600,1610 ---- abstract void endSection(); } /** RTFReader.DocumentDestination is a concrete subclass of * TextHandlingDestination which appends the text to the ! * StyledDocument given by the {@code target} ivar of the * containing RTFReader. */ class DocumentDestination extends TextHandlingDestination implements Destination
< prev index next >