javaÎļþºÍÎļþ¼ÐµÄ²Ù×÷
import java.io.BufferedReader;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.FileWriter;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.PrintWriter;
import java.util.StringTokenizer;
public class FileOperate {
private String message;
public FileOperate() {
}
/**
* ¶ÁÈ¡Îı¾ÎļþÄÚÈÝ
* @param filePathAndName ´øÓÐÍêÕû¾ø¶Ô·¾¶µÄÎļþÃû
* @param encoding Îı¾Îļþ´ò¿ªµÄ±àÂ뷽ʽ
* @return ·µ»ØÎı¾ÎļþµÄÄÚÈÝ
*/
public String readTxt(String filePathAndName,String encoding) throws IOException{
encoding = encoding.trim();
StringBuffer str = new StringBuffer("");
String st = "";
try{
FileInputStream fs = new FileInputStream(filePathAndName);
InputStreamReader isr;
if(encoding.equals("")){
isr = new InputStreamReader(fs);
}else{
isr = new InputStreamReader(fs,encoding);
}
BufferedReader br = new BufferedReader(isr);
try{
Ïà¹ØÎĵµ£º
¿çƽ̨ÈýάͼÐοª·¢¹¤¾ß°üJava 3D
¹Ù·½Ö÷Ò³£ºhttps://java3d.dev.java.net/
Java 3DÑϸñ×ñÑ“½¨Ä££»æÖÆ”·ºÐÍ¡£³¡¾°Í¼£¨scene graph£©µÄ³éÏóÄ£Ðͱ»ÓÃÀ´×éÖ¯ºÍά»¤ÐéÄⳡ¾°ÖеĿÉÊǶÔÏó¼°ÆäÐÐΪ¡£³¡¾°Í¼°üº¬ÁËÐéÄâͼÐÎÊÀ½çµÄÈ«²¿ÐÅÏ¢£¬Java 3D»æÖÆÒýÇæ»á¶Ô³¡¾°Í¼½øÐÐ×Ô ......
ǰЩÈÕ×ÓÕÛÌÚµÄÔÚÏßÅÄÕÕ£¬ÓÉÓÚÖ»ÊǸüÐÂblob×ֶΣ¬Ã»ÓÐÔÚ±¾µØ±£´æÕÕƬ£¬µ¼Ö¿ͻ§ÅÄÄÔÃÅÏëÒªµÄʱºò²»ÄÜÂíÉÏÄóöÀ´¡£Ã»ËµµÄËÈù˿ÍÊÇÉϵÛÄØ£¬×ö°É¡£Ê¹ÓÃÏ̳߳ش´½¨Èý¸öÏß³ÌÈÃ×Ô¶¨Ò»¸öÏß³ÌÄ¿±ê¹²Ïí£¨Ò²¾ÍÊǰѱíÀïµÄ¼Ç¼·Ö³Én×éͬʱִÐе¼³ö£©¡£³ÌÐòºÜ¼òµ¥£¬Ò»¹²ËĸöÀàºÍÒ»¸öojdbc14.jar°ü¡£ÓÉÓÚsqlÓï¾äд´íÁËÔì³É¶à¸öÏ̶߳ÔÒ»¸ ......
package test;
public class TestFactory<T> {
private Class <T> cls;
public String testabc="";
pub ......
Part 2£ºWeb²ã¹¦ÄÜÔöÇ¿
ÔÚJavaEE6ÖУ¬Web²ãÓÐÏÔÖøµÄ¹¦ÄÜÔöÇ¿¡£ÈçÉÏÎÄËùÊö£¬JavaaEE6ƽ̨µÄÄ¿±êÖ®Ò»¾ÍÊÇÔöÇ¿Æä¿ÉÀ©Õ¹ÐÔ£¬¶øÓë¿ÉÀ©Õ¹ÐÔÏà¹ØµÄÁ½¸ö¹Ø¼ü¼¼Êõ±ãÊÇ£ºWebƬ¶Ï£¨web fragments£©¡¢¹²Ïí¿ò¼Ü¿É²å°ÎÄÜÁ¦£¨shared framework pluggability£©£¬¶øÕâÁ½¸öÐÂÌØÐÔÊÇÓÉservlet3.0¼¼Êõ×é¼þÌṩµÄ¡£Servlet 3.0, JSR 315
ÊÇserv ......