Update of /cvsroot/tek/tek/client/proxy/proxymain
In directory sc8-pr-cvs10.sourceforge.net:/tmp/cvs-serv22011/proxy/proxymain
Modified Files:
SocketHandler.java
Log Message:
For internationalization, use PrintWriter's configured with the
appropriate character set rather then using raw PrintStream's.
Index: SocketHandler.java
===================================================================
RCS file: /cvsroot/tek/tek/client/proxy/proxymain/SocketHandler.java,v
retrieving revision 1.71
retrieving revision 1.72
diff -u -d -r1.71 -r1.72
--- SocketHandler.java 21 Jul 2006 18:16:43 -0000 1.71
+++ SocketHandler.java 24 Jul 2006 02:11:36 -0000 1.72
@@ -31,16 +31,7 @@
package tek.client.proxy.proxymain;
import java.awt.Frame;
-import java.io.BufferedReader;
-import java.io.File;
-import java.io.FileInputStream;
-import java.io.FileNotFoundException;
-import java.io.FileReader;
-import java.io.IOException;
-import java.io.InputStream;
-import java.io.InputStreamReader;
[...4370 lines suppressed...]
+ * shortened
+ * @return: the correct length of the term
+ */
+ private String replaceLen(String terms, String type) {
+ String output = "";
+ int i = 42;
+ int j = 40;
+ if (type.equals("result")) {
+ i = 65;
+ j = 62;
}
+ if (terms.length() > i)
+ output = terms.substring(0, j) + " " + "<b>...</b>";
+ else
+ output = terms;
+
+ return output;
+ }
}
|