ÊÕ²Ø java×·¼ÓдÎļþµÄ·½·¨
import java.io.BufferedWriter;
import java.io.FileOutputStream;
import java.io.FileWriter;
import java.io.IOException;
import java.io.OutputStreamWriter;
import java.io.RandomAccessFile;
/**
* ÃèÊö£º×·¼ÓÄÚÈݵ½Îļþĩβ
* @author Administrator
*
*/
public class WriteStreamAppend {
/**
* ×·¼ÓÎļþ£ºÊ¹ÓÃFileOutputStream£¬ÔÚ¹¹ÔìFileOutputStreamʱ£¬°ÑµÚ¶þ¸ö²ÎÊýÉèΪtrue
*
* @param fileName
* @param content
*/
public static void method1(String file, String conent) {
BufferedWriter out = null;
try {
out = new BufferedWriter(new OutputStreamWriter(
new FileOutputStream(file, true)));
out.write(conent);
} catch (Exception e) {
e.printStackTrace();
} finally {
try {
out.close();
} catch (IOException e) {
e.printStackTrace();
}
}
}
/**
* ×·¼ÓÎļþ£ºÊ¹ÓÃFileWriter
*
* @param fileName
* @param content
*/
public static void method2(String fileName, String content) {
try {
// ´ò¿ªÒ»¸öдÎļþÆ÷£¬¹¹Ô캯ÊýÖеĵڶþ¸ö²ÎÊýtrue±íʾÒÔ×·¼ÓÐÎʽдÎļþ
FileWriter writer = new FileWriter(fileName, true);
writer.write(content);
writer.close();
} catch (IOException e) {
e.printStackTrace();
}
}
/**
* ×·¼ÓÎļþ£ºÊ¹ÓÃRandomAccessFile
*
* @param fileName
* ÎļþÃû
* @param content
* ×·¼ÓµÄÄÚÈÝ
*/
public static void method3(String fileName, String content) {
Ïà¹ØÎĵµ£º
Èí»Ø³µ£¨Soft Return£©£ºÈí»Ø³µÊÇÔÚ×Ö´¦Àí³ÌÐòÖÐ×÷Ϊ×Ô¶¯ÒÆÐй¦ÄܵÄÒ»²¿·Ö×Ô¶¯²åÈëµÄ£¬Ò²½Ð»»Ðзû£¬ÔÚwordÖп´²»¼û¡£Èç¹ûÎı¾
Ò»Ðеij¤¶È³¬¹ýÎĵµËù¶¨ÒåµÄÓұ߾àʱ£¬¼´µ±Ç°ÐÐûÓÐ×ã¹»µÄ¿Õ¼ä·ÅÖÃÏÂÒ»¸ö×Ö·ûʱ£¬ÎÄ×Ö´¦ÀíÈí¼þ½«ÔÚÕâÒ»ÐÐÎı¾µÄĩβ×Ô¶¯²åÈëÒ»
¸öÈí»Ø³µ·û£¬Îı¾ÁíÆðÒ»ÐС£Õâ¸öÈí»Ø³µ·ûÊÇÓɱ༳ÌÐò×Ô¶¯² ......
×î½ü×ö¸öÏîÄ¿£¬¾ÍÊÇҪȡµÃcpuÕ¼ÓÐÂʵȵȵÄϵͳÐÅÏ¢£¬Ò»¿ªÊ¼ÒÔΪҪÓö¯Ì¬Á´½Ó¿âÁË£¬µ«ºóÀ´·¢ÏÖ¿ÉÒÔÏñÏÂÃæÕâÑù×ö£¬²»È¥µ÷ÓÃjni£¬ÕâÑùÊ¡È¥Á˺ܶ࿴м¼ÊõµÄʱ¼äo(∩_∩)o...
ÔÚJavaÖУ¬¿ÉÒÔ»ñµÃ×ܵÄÎïÀíÄڴ桢ʣÓàµÄÎïÀíÄÚ´æ¡¢ÒÑʹÓõÄÎïÀíÄÚ´æµÈÐÅÏ¢£¬ÏÂÃæÀý×Ó¿ÉÒÔÈ¡µÃÕâЩÐÅÏ¢£¬²¢ÇÒ»ñµÃÔÚWindowsϵÄÄÚ´æʹÓà......
»ñÈ¡classÀà·½·¨£º
1£¬getClass 2£¬Class.forName() 3,ÓÃ.class
public Field[] getDeclaredFields()
·µ»ØµÄÊÇij¸öÀàÀïµÄËùÓÐÀàÐ͵ıäÁ¿£¬²»°üÀ¨¼Ì³Ð¸¸ÀàµÄ
public Field[] getDeclaredFields(String name)
·µ»ØÌض¨Ãû×Ö
public Field[] getFields()
·µ»ØµÄÊÇij¸öÀàÀïµÄËùÓÐpublicÀàÐ͵ıäÁ¿£¬°üÀ¨¼Ì³Ð¸¸Àൠ......
OpenJWeb(1.8) Java WebÓ¦ÓÿìËÙ¿ª·¢Æ½Ì¨µÄ×÷ÕßÊÇÎÒÃǼ¼ÊõÁªÃ˵ijÉÔ±£¬Ëû×î½üÍƳöÁËа汾µÄ¿ìËÙÓ¦Óÿª·¢Æ½Ì¨ OpenJWeb(1.8)£¬ÎÒ°ïËû×ö×öÐû´«
OpenJWeb¿ìËÙ¿ª·¢Æ½Ì¨ÒÔ¿ìËÙ¿ª·¢ÎªºËÐÄ£¬ÕûºÏÏȽøµÄjava
¿ªÔ´¿ò¼Ü£¬±¾×Å×ÔÖ÷¿ª·¢+Ó¦Óü¯³ÉÏà½áºÏµÄÔÔò£¬Ö¼ÔÚΪÕþ¸®¡¢ÆóÊÂÒµµ¥Î»¡¢Èí¼þ¹«Ë¾µÈƽ̨Óû§Ìṩһ ......
Ìõ¼þ£ºÒÑ°²×°J2SEºÍJ2EE¡£
Microsoft SQL Server 2000 Driver for JDBCÊÇ΢Èí¹«Ë¾Ãâ·ÑÌṩÃâ·ÑÏÂÔصÄÒ»¸öÈí¼þ£¬Çë·ÃÎÊ£º http://www.microsoft.com/sql/default.asp£¬ÏÂÔغóÎļþÃûΪ£ºsetup.exe£¬°²×°ºó£¬Ä¬ÈÏ·¾¶ÊÇ£º%Program Files%\Microsoft SQL Server 2000 Driver for JDBC£¬¸ÃĿ¼ÏÂLIBĿ¼ÀïÓÐ3¸öjarÎļþ¡£ ......