📄 transformstring.java
字号:
message;
new StringBuffer();
this;
JVM INSTR dup_x1 ;
message;
append();
e2.toString();
append();
toString();
message;
dbg.append("File Name is:" + fileName + " Is Error\n");
e2.printStackTrace();
if(ps == null)
break MISSING_BLOCK_LABEL_563;
ps.close();
break MISSING_BLOCK_LABEL_510;
SQLException sqlEx;
sqlEx;
ps = null;
if(bis == null)
break MISSING_BLOCK_LABEL_536;
bis.close();
break MISSING_BLOCK_LABEL_535;
IOException e;
e;
e.printStackTrace();
if(fis == null)
break MISSING_BLOCK_LABEL_562;
fis.close();
break MISSING_BLOCK_LABEL_561;
e;
e.printStackTrace();
break MISSING_BLOCK_LABEL_783;
e;
new StringBuffer();
this;
JVM INSTR dup_x1 ;
message;
append();
e.toString();
append();
toString();
message;
dbg.append(e.toString());
e.printStackTrace();
if(ps == null)
break MISSING_BLOCK_LABEL_695;
ps.close();
break MISSING_BLOCK_LABEL_642;
SQLException sqlEx;
sqlEx;
ps = null;
if(bis == null)
break MISSING_BLOCK_LABEL_668;
bis.close();
break MISSING_BLOCK_LABEL_667;
IOException e;
e;
e.printStackTrace();
if(fis == null)
break MISSING_BLOCK_LABEL_694;
fis.close();
break MISSING_BLOCK_LABEL_693;
e;
e.printStackTrace();
break MISSING_BLOCK_LABEL_783;
Exception exception;
exception;
if(ps == null)
break MISSING_BLOCK_LABEL_779;
ps.close();
break MISSING_BLOCK_LABEL_726;
SQLException sqlEx;
sqlEx;
ps = null;
if(bis == null)
break MISSING_BLOCK_LABEL_752;
bis.close();
break MISSING_BLOCK_LABEL_751;
IOException e;
e;
e.printStackTrace();
if(fis == null)
break MISSING_BLOCK_LABEL_778;
fis.close();
break MISSING_BLOCK_LABEL_777;
e;
e.printStackTrace();
throw exception;
return photoID;
}
public void UploadPics()
{
int pos;
String tempfile;
if(clientString == null)
return;
pos = 0;
int fend = 0;
int fileID = 0;
tempfile = clientString;
String filename = null;
goto _L1
_L3:
int fbin;
pos = tempfile.indexOf(" src=", pos);
if(pos <= 0)
continue; /* Loop/switch isn't completed */
fbin = tempfile.indexOf("\"", pos);
int fend = tempfile.indexOf("\"", fbin + 1);
String filename = tempfile.substring(fbin + 1, fend);
if(filename.startsWith("showpic?ID="))
break MISSING_BLOCK_LABEL_174;
int fileID = UploadPic(filename);
if(fileID != -1)
{
tempfile = Replace(tempfile, filename, "showpic?ID=" + fileID);
break MISSING_BLOCK_LABEL_165;
}
new StringBuffer();
this;
JVM INSTR dup_x1 ;
message;
append();
"Upload pic error!";
append();
toString();
message;
dbg.append("Upload pic Error!");
return;
pos = fbin + 9;
break MISSING_BLOCK_LABEL_178;
pos += 11;
_L1:
if(pos != -1) goto _L3; else goto _L2
_L2:
serverString = tempfile;
return;
}
public static String codestring(String s)
{
String str = s;
byte b[] = str.getBytes("ISO-8859-1");
str = new String(b);
return str;
Exception e;
e;
return str;
}
public static String deTransformSelection(String test)
{
String temp = test;
int pos1 = 0;
int pos2 = 0;
for(int pos3 = 0; pos1 != -1 && pos3 != -1;)
{
pos1 = temp.indexOf("<input type=");
pos2 = temp.indexOf("value=\"");
pos3 = temp.indexOf("\">");
if(pos1 > 0 && pos3 > pos2)
temp = temp.substring(0, pos1) + temp.substring(pos3 + 2);
else
pos3 = -1;
}
return temp;
}
public String getClientString()
{
return clientString;
}
public String getMessage()
{
String httpText = null;
message = "OK";
UploadPics();
TransformSelction();
UpdateQuest();
System.out.print(dbg.toString());
System.out.print(clientString);
System.out.print(serverString);
System.out.print(dbg.toString());
return message;
}
public String getServerString()
{
return serverString;
}
public static void main(String argc[])
{
String httpText = null;
File file = new File("d:/edit.txt");
FileInputStream fis = new FileInputStream(file);
byte webxml[] = new byte[fis.available()];
fis.read(webxml);
httpText = new String(webxml);
break MISSING_BLOCK_LABEL_68;
FileNotFoundException e2;
e2;
e2.printStackTrace();
break MISSING_BLOCK_LABEL_68;
IOException e;
e;
e.printStackTrace();
Connection con;
System.out.print(httpText);
con = (new JinghuaConn()).getConnection();
TransformString trans = new TransformString();
trans.setCon(con);
trans.setClientString(httpText);
trans.UploadPics();
trans.TransformSelction();
trans.UpdateQuest();
System.out.print(trans.clientString);
System.out.print(trans.serverString);
con.close();
break MISSING_BLOCK_LABEL_157;
SQLException ex;
ex;
ex.printStackTrace();
return;
}
public static String readFile(String filename)
{
String httpText = null;
File file = new File(filename);
FileInputStream fis = new FileInputStream(file);
byte webxml[] = new byte[fis.available()];
fis.read(webxml);
httpText = new String(webxml);
break MISSING_BLOCK_LABEL_67;
FileNotFoundException e2;
e2;
e2.printStackTrace();
break MISSING_BLOCK_LABEL_67;
IOException e;
e;
e.printStackTrace();
System.out.print(httpText);
return httpText;
}
public void setClientString(String str)
{
clientString = str;
}
public void setCon(Connection con)
{
this.con = con;
}
public void setDBID(int id)
{
dBID = id;
}
public static String toHtml(String str)
{
String html = str;
html = Replace(html, "&", "&");
html = Replace(html, "<", "<");
html = Replace(html, ">", ">");
html = Replace(html, "\r\n", "\n");
html = Replace(html, "\n", "<br>\n");
html = Replace(html, "\t", " ");
html = Replace(html, " ", " ");
return html;
}
public static String toSql(String sqlstr)
{
String strsql = sqlstr;
strsql = Replace(strsql, "'", "''");
return strsql;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -