/*
* Created on 2004-9-18
*
* To change the template for this generated file go to
* Window>Preferences>Java>Code Generation>Code and Comments
*/
package com.bwm.string;
import java.io.UnsupportedEncodingException;
/**
*class explain:String deal with<br>
*set up name: crazyadept<br>
*set up time: 11/25/2004
*/
public class Str {
/**
*method explain:initialization Str<br>
*set up name: crazyadept<br>
*set up time: 11/25/2004<br>
*/
public Str() {
}
/**
*return : GB2312<br>
*parameter: iso-8859-1<br>
*set up name: crazyadept<br>
*change time: 11/25/2004
*/
public String toChinese(String str){
if(str==null||str.length()<1){
str="";
}else{
try {
str=(new String(str.getBytes("iso-8859-1"),"GB2312"));
} catch (UnsupportedEncodingException e) {
System.err.print(e.getMessage());
e.printStackTrace();
return str;
}
}
return str;
}
/**
*return : it's not have "'"<br>
*parameter: it's have "'" <br>
*set up name: crazyadept<br>
*change time: 11/25/2004
*/
public String dbEncode(String str){
if(str==null){
str="";
}else{
try{
str=str.replace('\'',(char)1).trim();
}catch(Exception e){
System.err.print(e.getMessage());
e.printStackTrace();
return str;
}
}
return str;
}
/**
*return : it's have " ' "<br>
*parameter: it's not have " ' " <br>
*set up name: crazyadept<br>
*change time: 11/25/2004
*/
public String dbDecode(String str){
if(str==null){
str="";
}else{
try{
str=str.replace((char)1,'\'').trim();
}catch(Exception e){
System.err.print(e.getMessage());
e.printStackTrace();
return str;
}
}
return str;
}
/***************************************************
*return : it's have ">,<"<br>
*parameter: it's have "<,>"<br>
*set up name: crazyadept<br>
*change time: 11/30/2004
****************************************************/
public String htmlEncode(String str){
str=this.replace(str,">",">");
str=this.replace(str,"<","<");
return str;
}
/***************************************************
*return : include str2<br>
*parameter: include str1<br>
*set up name: crazyadept<br>
*change time: 11/30/2004
****************************************************/
public String replace(String str,String str1,String str2){
String str3="";
if(str.indexOf(str1)==-1){
return str;
}else{
int i,j;
for(i=0;(j=str.indexOf(str1,i))!=-1;i=j+str1.length()){
str3=str3+str.substring(i,j);
str3=str3+str2;
}
str3=str3+str.substring(i,str.length());
return str3;
}
}
/***************************************************
*return : get data type<br>
*parameter: data type<br>
*set up name: crazyadept<br>
*change time: 12/01/2004
****************************************************/
public String getData(String str)
{
if(str.indexOf("int")!=-1||str.indexOf("bit")!=-1){
str="getInt";
}else if(str.indexOf("char")!=-1){
str="getString";
}else if(str.indexOf("date")!=-1){
str="getDate";
}else{
str="getObject";
}
return str;
}
}
没有合适的资源?快使用搜索试试~ 我知道了~
温馨提示
Java科研成果申报管理系统项目是一种用于科研成果申报的信息管理系统。该项目利用Java语言和相关技术实现了科技成果管理、科研项目管理、课题申报等多种功能,并提供了项目资料的收集、审核、归档等功能,以方便和提高企业对科研成果的申报管理能力。 该项目适用于各类企业和科研机构,包括高校、研究院所、企业研发部门等。使用场景包括:科技成果管理、科研项目管理等。管理员可以通过该系统实现对科研成果的收集、审核和归档,并加强对科研项目的管理和监督。 该系统的目标是提高企业对科研成果的申报管理能力,促进科学研究的发展和成果的转化。系统的设计和实现注重多元化管理,提供相应的审核、归档等功能,并且提高管理员的工作效率。同时,该系统注重数据安全和保密性,提供相应的管控机制,以便管理员可以进行管理和监督。
资源推荐
资源详情
资源评论
收起资源包目录
java科研成果申报管理系统源码 (155个子文件)
Str.class 2KB
Condb.class 2KB
Condb.class 2KB
Show.class 2KB
Sql.class 1021B
Show.class 689B
.classpath 432B
org.eclipse.wst.jsdt.ui.superType.container 49B
style.css 1KB
Thumbs.db 16KB
Thumbs.db 8KB
程序使用说明.doc 77KB
备用.doc 9KB
intro.gif 65KB
zhuye_3.gif 60KB
zhuye_1.gif 34KB
zhuye_2.gif 34KB
shenbao_1.gif 32KB
shenbao_1.gif 32KB
shenpi_1.gif 31KB
lc.gif 29KB
shenbao_5.gif 23KB
zhuye_4.gif 20KB
shenpi_2.gif 14KB
shenbao_2.gif 14KB
shenbao_2.gif 14KB
shenbao_2.gif 14KB
shenbao_4.gif 13KB
shenbao_4.gif 13KB
shenbao_4.gif 13KB
shenpi_3.gif 13KB
kyw_net.gif 13KB
map1(1)_43.gif 2KB
map1(1)_42.gif 2KB
map1(1)_39.gif 2KB
map1(1)_40.gif 2KB
map1(1)_02.gif 2KB
map1(1)_17.gif 2KB
map1(1)_20.gif 2KB
map1(1)_29.gif 2KB
map1(1)_07.gif 2KB
map1(1)_33.gif 2KB
map1(1)_30.gif 2KB
map1(1)_24.gif 2KB
map1(1)_38.gif 2KB
map1(1)_15.gif 2KB
map1(1)_19.gif 2KB
map1(1)_12.gif 2KB
map1(1)_18.gif 2KB
map1(1)_28.gif 2KB
map1(1)_09.gif 2KB
map1(1)_22.gif 2KB
map1(1)_03.gif 2KB
map1(1)_34.gif 2KB
map1(1)_32.gif 2KB
map1(1)_27.gif 2KB
map1(1)_08.gif 2KB
map1(1)_04.gif 2KB
map1(1)_10.gif 2KB
map1(1)_05.gif 2KB
map1(1)_23.gif 2KB
map1(1)_14.gif 2KB
map1(1)_25.gif 2KB
map1(1)_13.gif 2KB
map1(1)_35.gif 2KB
map1(1)_37.gif 2KB
map1(1)_44.gif 1KB
map1(1)_45.gif 1KB
map1(1)_01.gif 1KB
map1(1)_36.gif 1KB
map1(1)_21.gif 1KB
map1(1)_11.gif 1KB
map1(1)_06.gif 1KB
map1(1)_26.gif 1KB
map1(1)_31.gif 1KB
map1(1)_41.gif 1KB
map1(1)_16.gif 1KB
spacer.gif 43B
spacer.gif 43B
resultadd.htm 8KB
taskadd.htm 8KB
rquery.htm 3KB
adduser.htm 2KB
login.htm 2KB
left.htm 2KB
tquery.htm 2KB
top.htm 2KB
flow.htm 1KB
mr.htm 1KB
memberadd.htm 1KB
left.htm 1KB
left.htm 1KB
tmember.htm 828B
index.htm 776B
index.htm 774B
index.htm 731B
right.htm 645B
bottom.htm 595B
top.htm 554B
top.htm 553B
共 155 条
- 1
- 2
资源评论
lucky-zhao
- 粉丝: 164
- 资源: 1801
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功