?? f07402475b6c001d1b28dd35d501e274
字號:
package src.software0611.mxb;
import java.io.*;
import java.net.Socket;
import javax.swing.JOptionPane;
public class Process extends Thread {
Socket socket;
InputStream in;
public final static String WEB_ROOT="E:\\java\\WebProject\\WEB_ROOT";
public Process(Socket s) {
this.socket = s;
try {
in = socket.getInputStream();
} catch (IOException e) {
e.printStackTrace();
}
}
public void run() {
}
public String parse() {
BufferedReader br = new BufferedReader(new InputStreamReader(in));
String fileName=null;
try {
String message = br.readLine();
String content[]=message.split("");
if(content.length!=3){
JOptionPane.showMessageDialog(null,"文件讀取錯誤!");
return null;
}
System.out.println("code:"+content[0]+",fileName:"+content[1]+"http version:"+content[2]);
fileName=content[1];
} catch (IOException e) {
e.printStackTrace();
}
return fileName;
}
public void sendFile(){
File file=new File(Process.WEB_ROOT);
if(!file.exists()){
JOptionPane.showMessageDialog(null, "文件沒有找到");
return;
}
}
public static void main(String[] args) {
}
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -