Ò׽ؽØÍ¼Èí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

JavaÖжÔÎļþµÄ²Ù×÷

JavaÖжÔÎļþµÄ²Ù×÷
javaÖÐÌṩÁËioÀà¿â£¬¿ÉÒÔÇáËɵÄÓÃjavaʵÏÖ¶ÔÎļþµÄ¸÷ÖÖ²Ù×÷¡£ÏÂÃæ¾ÍÀ´ËµÒ»ÏÂÈçºÎÓÃjavaÀ´ÊµÏÖÕâЩ²Ù×÷¡£
1¡£Ð½¨Ä¿Â¼
<%@
page contentType="text/html;charset=gb2312"%>
<%
String
filePath="c:/aaa/";
filePath=filePath.toString();//ÖÐÎÄת»»
java.io.File
myFilePath=new
java.io.File(filePath);
if(!myFilePath.exists())
myFilePath.mkdir();
%>
2¡£Ð½¨Îļþ
<%@
page contentType="text/html;charset=gb2312"%>
<%@ page
import="java.io.*" %>
<%
String
filePath="c:/¹þ¹þ.txt";
filePath=filePath.toString();
File
myFilePath=new
File(filePath);
if(!myFilePath.exists())
myFilePath.createNewFile();
FileWriter
resultFile=new FileWriter(myFilePath);
PrintWriter myFile=new
PrintWriter(resultFile);
String strContent =
"ÖÐÎIJâÊÔ".toString();
myFile.println(strContent);
resultFile.close();
%>
3¡£É¾³ýÎļþ
<%@
page contentType="text/html;charset=gb2312"%>
<%
String
filePath="c:/Ö§³öÖ¤Ã÷µ¥.xls";
filePath=filePath.toString();
java.io.File
myDelFile=new
java.io.File(filePath);
myDelFile.delete();
%>
4¡£Îļþ¿½±´
<%@
page contentType="text/html; charset=gb2312" %>
<%@ page
import="java.io.*" %>
<%
int bytesum=0;
int
byteread=0;
file://¶Áµ½Á÷ÖÐ
InputStream inStream=new
FileInputStream("c:/aaa.doc");
FileOutputStream fs=new FileOutputStream(
"d:/aaa.doc");byte[] buffer =new byte[1444];
int length;
while
((byteread=inStream.read(buffer))!=-1)
{
out.println("<DT><B>"+byteread+"</B></DT>");
bytesum+=byteread;
System.out.println(bytesum);
fs.write(buffer,0,byteread);
}
inStream.close();
%>
5¡£Õû¸öÎļþ¼Ð¿½±´
<%@
page contentType="text/html;charset=gb2312"%>
<%@ page
import="java.io.*" %>
<%String url1="C:/aaa";
String
url2="d:/java/";
(new File(url2)).mkdirs();
File[] file=(new
File(url1)).listFiles();
for(int
i=0;i<file.length;i++){
if(file.isFile()){
file.toString();
FileInp


Ïà¹ØÎĵµ£º

´«ÖDz¥¿ÍjavaÅàѵ java»ù´¡Ö®javabean

×òÌìÉÏÍøÓöµ½ÒÔǰµÄͬѧ£¬ÔÚÒøÐÐÉϰ࣬¸øÎÒÀ´Á˾䣺javaÊÇ´ÏÃ÷ÈËѧµÄ¶«Î÷£¡
˵µÃÎҺܺ¹ÑÕ£¬ÒòΪ¾õµÃ×Ô¼ºÒ»Ö±ºÜ±¿µÄ£¬Ò²Ã»ÓоõµÃѧϰjavaÓë´ÏÃ÷£¬±¿µ°
Ö®¼äµÄ¹ØÏµ£¡
¼ÇµÃÀϱÏÿ´Î½²¿Î£¬×îºó×ÜÒªÎÊ£ºÌý¶®Ã»Óа¡£¿ È»ºóÆä×Ô¼º»Ø´ð×Ô¼º£º¿Ï¶¨Ìý¶®ÁË¡£
ÎÒ˵µÄÊÇÖйú»°£¬´ó°×»°£¬Ôõô»áÌý²»¶®£¿ Í¬ÑùµÄµÀÀí£¬Ö»ÒªÊÇÒ»¸öÕ ......

Java rmi ¸ÅÊö

Java rmi
1.     RMI¸ÅÊö
RMI(Remote Method Invocation)
RMIÊÇ·Ö²¼Ê½¶ÔÏóÈí¼þ°ü£¬Ëü¼ò»¯ÁËÔÚ¶ą̀¼ÆËã»úÉϵÄJAVAÓ¦ÓóÌÐòÖ®¼äµÄͨÐÅ¡£
java rmi°ü±ØÐëÔÚjdk1.1ÒÔÉÏ
RMIʹÓõ½µÄÀà
java.rmi.Remote
ËùÓпÉÒÔ±»Ô¶³Ìµ÷ÓõĶÔÏó¶¼±ØÐëʵÏָýӿÚ
java.rmi.server.UnicastRemoteObject
ËùÓпÉÒÔ±»Ô ......

JAVAÔÚÏßAPI

http://java.sun.com/reference/api/
JavaTM Platform Enterprise Edition, v 5.0
http://java.sun.com/javaee/5/docs/api/
1.Hibernate API Documentation (3.2.2.ga)
http://www.hibernate.org/hib_docs/v3/api/
2.Spring Framework API 2.5
http://static.springframework.org/spring/docs/2.5.x/api/index.h ......

java µ÷¶È datastage Ö®jna

ͨ¹ýjava jna µ÷ÓÃdatastage c api Àý×ÓÈçÏ£¬ÕâÊÇÔËÐÐ×÷ÒµµÄÀý×Ó
¾­²âÊÔÊÇ¿ÉÐеġ£
import com.sun.jna.Library;
import com.sun.jna.Structure;
import com.sun.jna.Union;
import com.sun.jna.Native;
/** Simple example of native library declaration and usage. */
public class dsjobc {
public static cl ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ