Java³£Óù¤¾ßÀà
import java.text.*;
import java.util.*;
/**
*
* <p>
* Title: ͨÓù¤¾ßÀà
* </p>
* <p>
* Description: ³£Óù¤¾ßµÄ¼¯ºÏ£¬ÓÃÀ´´¦Àí³£¼ûÎÊÌ⣬±ÈÈçÖÐÎÄÂÒÂëµÄ·½·¨µÈ¡£
* </p>
* <p>
* Copyright: Copyright (c) 2003
* </p>
* <p>
* Company: Towery
* </p>
*
* @author WangPinHeng
* @version 1.0
*/
public class Tools {
public Tools() {
//
}
/**
* ×Ö·û´®Ìæ»»£¬½« source ÖÐµÄ oldString È«²¿»»³É newString
*
* @param source
* Ô´×Ö·û´®
* @param oldString
* ÀϵÄ×Ö·û´®
* @param newString
* еÄ×Ö·û´®
* @return Ìæ»»ºóµÄ×Ö·û´®
*/
private static String Replace(String source, String oldString,
String newString) {
StringBuffer output = new StringBuffer();
int lengthOfSource = source.length(); // Ô´×Ö·û´®³¤¶È
int lengthOfOld = oldString.length(); // ÀÏ×Ö·û´®³¤¶È
int posStart = 0; // ¿ªÊ¼ËÑË÷λÖÃ
int pos; // ËÑË÷µ½ÀÏ×Ö·û´®µÄλÖÃ
while ((pos = source.indexOf(oldString, posStart)) >= 0) {
output.append(source.substring(posStart, pos));
&n
Ïà¹ØÎĵµ£º
½ñÌìÔÚCSDN¹äÂÛ̳µÄʱºòÎÞÒâÖз¢ÏÖÓÐÈËÎÊÔÚJavaÖÐÊÇ·ñÓÐReadOnly²Ù×÷·½Ê½µÄ¼¯ºÏ£¬ËµÊµ»°ÔÚÒÔÍù¿ª·¢Öи÷ÖÖ¼¯ºÏÓõĺܶ࣬µ«ÊÇÕâ¸öÎÊÌ⻹ÕæûÓÐ×¢Òâ¹ý¡£È¥JavaµÄ¹Ù·½APIÎĵµ²éÁËһϣ¬CollectionsÖл¹ÕæÓÐÕâô¸ö·½·¨Ö§³Ö£¬·½·¨ÔÐÍÈçÏ£º
unmodifiableCollection
public static <T> Collection<T> unmodifiable ......
×÷ΪJava³ÌÐòÔ±À´Ëµ£¬×îÍ´¿àµÄÊÂÇéĪ¹ýÓÚ¿ÉÒÔÑ¡ÔñµÄ·¶Î§Ì«¹ã£¬¿ÉÒÔ¶ÁµÄÊéÌ«¶à£¬ÍùÍùÈÝÒ×ÎÞËùÊÊ´Ó¡£¸ù¾ÝÎҵľÑ飬°´ÕÕѧϰµÄÏȺó˳Ðò£¬ÍƼö¸ø´ó¼Ò£¬ÌرðÊÇÄÇЩÏë²»¶ÏÌá¸ß×Ô¼º¼¼ÊõˮƽµÄJava³ÌÐòÔ±ÃÇ¡£
Ò»¡¢Java±à³ÌÈëÃÅÀà
¶ÔÓÚûÓÐJava±à³Ì¾ÑéµÄ³ÌÐòÔ±ÒªÈëÃÅ£¬Ëæ±ã¶ÁʲôÈëÃÅÊé¼®¶¼Ò»Ñù£¬Õâ¸ö½×¶ÎÐèÒªÄã ......
Java socket×ܽá
Ò»£¬ÍøÂç±à³ÌÖÐÁ½¸öÖ÷ÒªµÄÎÊÌâ
Ò»¸öÊÇÈçºÎ׼ȷµÄ¶¨Î»ÍøÂçÉÏһ̨»ò¶ą̀Ö÷»ú£¬ÁíÒ»¸ö¾ÍÊÇÕÒµ½Ö÷»úºóÈçºÎ¿É¿¿¸ßЧµÄ½øÐÐÊý¾Ý´«Êä¡£
ÔÚ
TCP/IPÐÒéÖÐ
IP²ãÖ÷Òª¸ºÔðÍøÂçÖ÷»úµÄ¶¨Î»£¬Êý¾Ý´«ÊäµÄ·ÓÉ£¬ÓÉ
IPµØÖ·¿ÉÒÔΨһµØÈ·¶¨
InternetÉϵÄһ̨Ö÷»ú¡£
¶ø
TCP²ãÔòÌṩÃæÏòÓ¦ÓõĿɿ¿£¨
tcp£©µÄ»ò·Ç¿É¿ ......
×÷Õß : ÀîÖ¾ÌÎ
ÓÊÏäµØÖ· :lizhitao67116961@163.com
ÉîÛÚÓÅÍø¿Æ¼¼ÓÐÏÞ¹«Ë¾
Ç°¼¸Ìì¿´µ½ÓÐijλÍøÓÑдÁËÓÃhttp½øÐжϵãÏÂÔØÎļþ£¬µ«ÊÇÍøÉÏûÓп´µ½ftp¶ÏµãÏÂÔصÄÎÄÕ»ò´úÂ룬ÏÖÔÚ±¾ÈËдÁËһϡ£¾¹ý²âÊÔûÓÐÎÊÌâ¡£Çë´ó¼Ò¶à¶àÖ¸½Ì¡£ÈçÓÐÊ詵ĵط½Çë¸÷λ¼¼ÊõÓÑÈËÖ¸³ö¡£±¾È˲»Ê¤¸Ð¼¤¡£
package t ......