資源簡介
企業網站java(前后臺), 曾經小組合作開發的企業網站共享

代碼片段和文件信息
//?Decompiled?by?Jad?v1.5.7g.?Copyright?2000?Pavel?Kouznetsov.
//?Jad?home?page:?http://www.geocities.com/SiliconValley/Bridge/8617/jad.html
//?Decompiler?options:?packimports(3)?fieldsfirst?ansi?
//?Source?File?Name:???DealString.java
package?com;
import?java.io.PrintStream;
import?java.text.SimpleDateFormat;
import?java.util.Date;
import?java.util.Vector;
import?sun.io.ByteToCharConverter;
import?sun.io.CharToByteConverter;
public?class?DealString
{
????public?DealString()
????{
????}
????public?String?toString(String?str)
????{
????????if(str?==?null)
????????????str?=?““;
????????if(str.equals(“null“))
????????????str?=?““;
????????str?=?str.trim();
????????return?str;
????}
????public?String?toGBK(String?str)
????{
????????try
????????{
????????????str?=?new?String(str.getBytes(“ISO-8859-1“)?“GBK“);
????????}
????????catch(Exception?exception)?{?}
????????return?str;
????}
????public?String?toUtf8String(String?src)
????{
????????byte?b[]?=?src.getBytes();
????????char?c[]?=?new?char[b.length];
????????for(int?i?=?0;?i?????????????c[i]?=?(char)(b[i]?&?0xff);
????????return?new?String(c);
????}
????public?String?toASCII(String?str)
????{
????????try
????????{
????????????str?=?new?String(str.getBytes(“GBK“)?“ISO-8859-1“);
????????}
????????catch(Exception?exception)?{?}
????????return?str;
????}
????public?String[]?splitStr(String?str?char?c)
????{
????????str?=?str?+?c;
????????int?n?=?0;
????????for(int?i?=?0;?i?????????????if(str.charAt(i)?==?c)
????????????????n++;
????????String?out[]?=?new?String[n];
????????for(int?i?=?0;?i?????????{
????????????int?index?=?str.indexOf(c);
????????????out[i]?=?str.substring(0?index);
????????????str?=?str.substring(index?+?1?str.length());
????????}
????????return?out;
????}
????public?String?getDateTime()
????{
????????SimpleDateFormat?f?=?new?SimpleDateFormat(“yyyy-MM-dd?HH:mm:ss“);
????????String?time?=?f.format(new?Date());
????????return?time;
????}
????public?String?Replace(String?source?String?oldString?String?newString)
????{
????????StringBuffer?output?=?new?StringBuffer();
????????int?lengthOfSource?=?source.length();
????????int?lengthOfOld?=?oldString.length();
????????int?posStart;
????????int?pos;
????????for(posStart?=?0;?(pos?=?source.indexOf(oldString?posStart))?>=?0;?posStart?=?pos?+?lengthOfOld)
????????{
????????????output.append(source.substring(posStart?pos));
????????????output.append(newString);
????????}
????????if(posStart?????????????output.append(source.substring(posStart));
????????return?output.toString();
????}
????public?long?getDaysInterval(Date?d1?Date?d2)
????{
????????return?(d2.getTime()?-?d1.getTime())?/?0x5265c00L;
????}
????public?String?toLengthStr(String?instr?int?len)
????{
????????int?n?=?instr.length();
????????for(int?i?=?0;?i????????????
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件???????1160??2009-11-23?14:46??jsp\.classpath
?????目錄??????????0??2009-11-23?14:42??jsp\.myeclipse
?????文件????????282??2009-11-23?14:42??jsp\.myme
?????文件???????1343??2009-11-23?15:00??jsp\.project
?????文件???????9689??2009-11-23?14:53??jsp\src\com\DealString.java
?????文件???????2552??2009-11-23?14:50??jsp\src\com\msg\bean\info.java
?????文件???????1684??2009-11-23?14:50??jsp\src\com\msg\bean\li
?????文件???????1958??2009-11-23?14:50??jsp\src\com\msg\bean\Pagination.java
?????目錄??????????0??2009-11-23?14:50??jsp\src\com\msg\bean
?????文件????????646??2009-11-23?14:59??jsp\src\com\msg\db\ConfigFile.java
?????文件???????5570??2009-11-23?14:55??jsp\src\com\msg\db\DBConn.java
?????文件???????1527??2009-11-23?14:58??jsp\src\com\msg\db\DBConnect.java
?????目錄??????????0??2009-11-23?14:52??jsp\src\com\msg\db
?????目錄??????????0??2009-11-23?14:51??jsp\src\com\msg
?????文件???????3293??2009-11-23?15:06??jsp\src\com\web\databa
?????文件???????2172??2006-05-22?20:02??jsp\src\com\web\databa
?????目錄??????????0??2006-07-05?08:52??jsp\src\com\web\databa
?????文件???????3181??2005-06-12?00:00??jsp\src\com\web\email\Email.java
?????目錄??????????0??2006-07-05?08:52??jsp\src\com\web\email
?????文件???????1266??2005-06-12?00:00??jsp\src\com\web\filter\EncodingFilter.java
?????文件???????1845??2006-05-22?20:02??jsp\src\com\web\filter\VipCenterFilter.java
?????目錄??????????0??2006-07-05?08:52??jsp\src\com\web\filter
?????文件???????3807??2006-06-08?09:19??jsp\src\com\web\servlet\AddLeaveWordClass.java
?????文件???????2718??2006-05-22?20:02??jsp\src\com\web\servlet\ClassList.java
?????文件???????3178??2005-06-12?00:00??jsp\src\com\web\servlet\DelUserManServlet.java
?????文件???????4784??2006-07-05?15:51??jsp\src\com\web\servlet\DocUploadServlet.java
?????文件???????2422??2006-06-13?17:22??jsp\src\com\web\servlet\EmailAction.java
?????文件???????2450??2005-06-12?00:00??jsp\src\com\web\servlet\HelpList.java
?????文件???????4024??2006-06-08?17:44??jsp\src\com\web\servlet\LeaveWordList.java
?????文件???????3288??2006-06-14?17:02??jsp\src\com\web\servlet\NewsList.java
............此處省略944個文件信息
評論
共有 條評論