Fixed Javadocs.

This commit is contained in:
dchandler 2003-07-04 00:12:59 +00:00
parent 0a1bc0d30b
commit 6c286573ba
3 changed files with 14 additions and 9 deletions

View file

@ -1600,7 +1600,7 @@ public void paste(int offset) {
* corresponding to one of these glyphs, then noSuchWylie[0] will be * corresponding to one of these glyphs, then noSuchWylie[0] will be
* set to true * set to true
* @return the string of Wylie corresponding to the associated document * @return the string of Wylie corresponding to the associated document
* @see org.thdl.tib.text.TibetanDocument#getWylie() */ * @see org.thdl.tib.text.TibetanDocument#getWylie(boolean[]) */
public String getWylie(boolean noSuchWylie[]) { public String getWylie(boolean noSuchWylie[]) {
return getTibDoc().getWylie(noSuchWylie); return getTibDoc().getWylie(noSuchWylie);
} }

View file

@ -703,9 +703,9 @@ public class TibetanDocument extends DefaultStyledDocument {
cases will be appended to this StringBuffer cases will be appended to this StringBuffer
@return false on 100% success, true if any exceptional case @return false on 100% success, true if any exceptional case
was encountered was encountered
@see #convertToUnicode(int,int,StringBuffer,String) @see #convertToUnicode(int,int,StringBuffer,String,long[])
@see #convertToTMW(int,int,StringBuffer) @see #convertToTMW(int,int,StringBuffer,long[])
@see #convertToTM(int,int,StringBuffer) */ @see #convertToTM(int,int,StringBuffer,long[]) */
private boolean convertHelper(int begin, int end, boolean toTM, private boolean convertHelper(int begin, int end, boolean toTM,
boolean toUnicode, StringBuffer errors, boolean toUnicode, StringBuffer errors,
String unicodeFont, String unicodeFont,

View file

@ -27,8 +27,8 @@ import java.io.BufferedInputStream;
import java.io.InputStream; import java.io.InputStream;
/** Provides an input stream that fixes an RTF input stream so that it /** Provides an input stream that fixes another RTF input stream so
no longer contains hexadecimal escapes that {@see that it no longer contains hexadecimal escapes that {@link
javax.swing.text.rtf#RTFEditorKit} cannot understand. Instead, javax.swing.text.rtf#RTFEditorKit} cannot understand. Instead,
Unicode escapes (that can be understood) are used. This is almost Unicode escapes (that can be understood) are used. This is almost
as fast as possible. as fast as possible.
@ -43,14 +43,19 @@ public class RTFFixerInputStream extends FilterInputStream {
then just the 32 "\\\'8X" and "\\\'9X" escapes are replaced. */ then just the 32 "\\\'8X" and "\\\'9X" escapes are replaced. */
private boolean replaceAllHexEscapes = false; private boolean replaceAllHexEscapes = false;
/** 7, as in "\\u255 ?" (KEEP THIS IN SYNC WITH addASpace) */ /** The number of bytes in the Unicode RTF escape sequence that we
will use after processing. I.e., 7, as in "\\u255 ?" (KEEP THIS IN
SYNC WITH addASpace) */
static final int bytesInNewEscape = 7; static final int bytesInNewEscape = 7;
/** true if you want "\\u255 ?" instead of "\\u255?" (KEEP THIS IN SYNC WITH bytesInNewEscape) */ /** True if you want a space in your Unicode RTF escape. I.e.,
true if you want "\\u255 ?" instead of "\\u255?" (KEEP THIS IN
SYNC WITH bytesInNewEscape) */
private static final boolean addASpace = true; private static final boolean addASpace = true;
private boolean weSubstitutedAtLeastOnce = false; private boolean weSubstitutedAtLeastOnce = false;
/** 4, as in "\\\'ff" */ /** The number of bytes in the RTF hexadecimal escape. I.e., 4,
as in "\\\'ff". */
static final int bytesInOldEscape = 4; static final int bytesInOldEscape = 4;
/** an instance field just to avoid needless heap allocation */ /** an instance field just to avoid needless heap allocation */
private final byte readHelper[] = new byte[bytesInNewEscape]; private final byte readHelper[] = new byte[bytesInNewEscape];