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

Java²Ù×÷Excel Poi¼ò½é


 
Ò»£®POI¼ò½é
Jakarta POI ÊÇapacheµÄ×ÓÏîÄ¿£¬Ä¿±êÊÇ´¦Àíole2¶ÔÏó¡£ËüÌṩÁËÒ»×é²Ù×ÝWindowsÎĵµµÄJava API
Ä¿Ç°±È½Ï³ÉÊìµÄÊÇHSSF½Ó¿Ú£¬´¦ÀíMS Excel£¨97-2002£©¶ÔÏó¡£Ëü²»ÏóÎÒÃǽö½öÊÇÓÃcsvÉú³ÉµÄûÓиñʽµÄ¿ÉÒÔÓÉExcelת»»µÄ¶«Î÷£¬¶øÊÇÕæÕýµÄExcel¶ÔÏó£¬Äã¿ÉÒÔ¿ØÖÆһЩÊôÐÔÈçsheet,cellµÈµÈ¡£
¶þ£®HSSF¸Å¿ö
HSSF ÊÇHorrible SpreadSheet FormatµÄËõд£¬Ò²¼´“ÌÖÑáµÄµç×Ó±í¸ñ¸ñʽ”¡£Ò²ÐíHSSFµÄÃû×ÖÓе㻬»ü£¬¾Í±¾ÖʶøÑÔËüÊÇÒ»¸ö·Ç³£ÑÏËà¡¢Õý¹æµÄAPI¡£Í¨¹ýHSSF£¬Äã¿ÉÒÔÓô¿Java´úÂëÀ´¶ÁÈ¡¡¢Ð´Èë¡¢ÐÞ¸ÄExcelÎļþ¡£
HSSF Ϊ¶ÁÈ¡²Ù×÷ÌṩÁËÁ½ÀàAPI£ºusermodelºÍeventusermodel£¬¼´“Óû§Ä£ÐÍ”ºÍ“ʼþ-Óû§Ä£ÐÍ”¡£Ç°ÕߺܺÃÀí½â£¬ºóÕ߱ȽϳéÏ󣬵«²Ù×÷ЧÂÊÒª¸ßµÃ¶à¡£
Èý£®¿ªÊ¼±àÂë
1 £® ×¼±¸¹¤×÷
ÒªÇó:JDK 1.4+POI¿ª·¢°ü
2 £® EXCEL ½á¹¹
HSSFWorkbook excell Îĵµ¶ÔÏó½éÉÜ
HSSFSheet excellµÄ±íµ¥
HSSFRow excellµÄÐÐ
HSSFCell excellµÄ¸ñ×Óµ¥Ôª
HSSFFont excell×ÖÌå
HSSFName Ãû³Æ
HSSFDataFormat ÈÕÆÚ¸ñʽ
ÔÚpoi1.7ÖвÅÓÐÒÔÏÂ2Ï
HSSFHeader sheetÍ·
HSSFFooter sheetβ
ºÍÕâ¸öÑùʽ
HSSFCellStyle cellÑùʽ
¸¨Öú²Ù×÷°üÀ¨
HSSFDateUtil ÈÕÆÚ
HSSFPrintSetup ´òÓ¡
HSSFErrorConstants ´íÎóÐÅÏ¢±í
3 £®¾ßÌåÓ÷¨ÊµÀý £¨²ÉÓà usermodel £©
ÈçºÎ¶ÁExcel
¶ÁÈ¡ExcelÎļþʱ£¬Ê×ÏÈÉú³ÉÒ»¸öPOIFSFileSystem¶ÔÏó£¬ÓÉPOIFSFileSystem¶ÔÏó¹¹ÔìÒ»¸öHSSFWorkbook£¬¸ÃHSSFWorkbook¶ÔÏó¾Í´ú±íÁËExcelÎĵµ¡£ÏÂÃæ´úÂë¶ÁÈ¡ÉÏÃæÉú³ÉµÄExcelÎļþдÈëµÄÏûÏ¢×Ö´®£º
´úÂë
POIFSFileSystem fs=newPOIFSFileSystem(new FileInputStream("d:\test.xls"));    
HSSFWorkbook ¡¡wb = new HSSFWorkbook(fs);    
¡¡¡¡} catch (IOException e) {    
¡¡¡¡e.printStackTrace();    
¡¡¡¡}    
¡¡¡¡HSSFSheet sheet = wb.getSheetAt(0);    
¡¡¡¡HSSFRow row = sheet.getRow(0);    
¡¡¡¡HSSFCell cell = row.getCell((short) 0);    
¡¡¡¡String msg = cell.getStringCellValue();  
POIFSFileSystem fs=newPOIFSFileSystem(new FileInputStream("d:\test.xls"));    
HSSFWorkbook ¡


Ïà¹ØÎĵµ£º

ÓÃJavaʵÏÖÎļþ·Ö¸î\ºÏ²¢²Ù×÷

import java.io.File;
import java.io.FilenameFilter;
import java.io.IOException;
import java.io.RandomAccessFile;
import java.sql.Timestamp;
import java.util.Arrays;
public class SmallToBig {
 private String newFileName;// ÐÂÎļþÃû×Ö
 private String filterName;// ¹ýÂ˹æÔòÃû×Ö
  ......

Javaѧϰ֮·

1£®ÈçºÎѧϰ³ÌÐòÉè¼Æ£¿
JAVAÊÇÒ»ÖÖƽ̨£¬Ò²ÊÇÒ»ÖÖ³ÌÐòÉè¼ÆÓïÑÔ£¬ÈçºÎѧºÃ³ÌÐòÉè¼Æ²»½ö½öÊÊÓÃÓÚJAVA£¬¶ÔC++µÈÆäËû³ÌÐòÉè¼ÆÓïÑÔÒ²Ò»Ñù¹ÜÓá£Óбà³Ì¸ßÊÖÈÏΪ£¬ JAVAÒ²ºÃCÒ²ºÃûʲô·Ö±ð£¬ÄÃÀ´¾ÍÓá£ÎªÊ²Ã´ËûÃÇÄÜ´ïµ½Èç´Ë¾³½ç£¿ÎÒÏëÊÇÒòΪ±à³ÌÓïÑÔÖ®¼äÓй²Í¨Ö®´¦£¬Áì»áÁ˱à³ÌµÄ¾«Ë裬×ÔÈ»Äܹ»×öµ½Ò»Í¨°Ùͨ¡£ÈçºÎѧϰ³ÌÐòÉè¼ÆÀ ......

Amazon·¢²¼ÐµÄJava SDK for Amazon Web Services

 
½ñÄê3ÔÂAmazon·¢²¼
ÁËеÄJava AWS
SDK
£¬Ö¼ÔÚ¼ò»¯Amazon EC2ÉϵÄJavaÓ¦Óÿª·¢¡£
Amazon EC2ÊǸö˽ÓеÄWeb Services£¬ÌṩÁËÔÆ»·¾³Ïµĵ¯ÐÔ¼ÆËãÄÜÁ¦¡£AWS SDKÖ¼ÔÚ¼ò»¯ÍøÂç¹æÄ££¨web-scale£©ÏµļÆËã¡£AWS Toolkit for
Eclipse
×Ô¶¯»¯ÁË¿ª·¢ÖÜÆڵĴó¶àÊý²½Ö裬±ÈÈçAmazon¼¯ÈºÉϵIJ¿Êð¡¢µ÷ÊÔ¡¢ÊµÀý¼ÓÔØÒÔ¼°Íø ......

JAVA¶íÂÞ˹·½¿é

import java.awt.*;
import java.awt.event.*;
import java.applet.*;
/*
TRTRIS GAME
WRITE BY DELFAN
EMAIL : webmaster@delfan.com
URL : http://www.delfan.com
¾­µä"¶íÂÞ˹·½¿é"ÓÎÏ·
×÷Õß : DELFAN
EMail : webmaster@delfan.com
Ö÷Ò³ : http://www.delfan.com
°æ±¾ÐÅÏ¢:
2002.01.13 »ù±¾Íê³É ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ