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

JAVA¶ÁÈ¡PPTÎļþ

import java.io.InputStream;
import org.apache.lucene.document.Document;
import org.apache.poi.hslf.HSLFSlideShow;
import org.apache.poi.hslf.model.TextRun;
import org.apache.poi.hslf.model.Slide;
import org.apache.poi.hslf.usermodel.SlideShow;
public Document getDocument(Index index, String url, String title, InputStream is)
throws DocCenterException {
StringBuffer content = new StringBuffer("");
try{
SlideShow ss = new SlideShow(new HSLFSlideShow(is));//is ΪÎļþµÄInputStream£¬½¨Á¢SlideShow
Slide[] slides = ss.getSlides();//»ñµÃÿһÕÅ»ÃµÆÆ¬
for(int i=0;i<slides.length;i++){
TextRun[] t = slides[i].getTextRuns();//ΪÁËÈ¡µÃ»ÃµÆÆ¬µÄÎÄ×ÖÄÚÈÝ£¬½¨Á¢TextRun
for(int j=0;j<t.length;j++){
content.append(t[j].getText());//ÕâÀï»á½«ÎÄ×ÖÄÚÈݼӵ½contentÖÐÈ¥
}
content.append(slides[i].getTitle());
}
index.AddIndex(url, title, content.toString());
}catch(Exception ex){
System.out.println(ex.toString());
}
return null;
}


Ïà¹ØÎĵµ£º

HowTo Install Java on CentOS 4 and CentOS 5

http://writeblog.csdn.net/PostEdit.aspx?entryId=5305099
Contents
Preliminary material
Method One: A simple approach
Method Two: A less simple approach
Java for the desktop user
Java for the developer and the server environment
Requirements
Step 1. Initial setup
Step 2. Installing your favor ......

ÎÒÓÃjavaдµÄÈÕÀú

public class Calendar {
 /**
  * Ö±½ÓµÄ¿ÉÒԲ鿴Ч¹û
  * @param args
  */
 public static void main(String[] args) {
  
  int year=input.nextInt();//Äê
  int month=input.nextInt();//ÔÂ
  int yearday=0;//Äê×ÜÌìÊý
  //¼ ......

»ùÓÚ Java µÄ½çÃæ²¼¾Ö DSL µÄÉè¼ÆÓëʵÏÖ


http://www.ibm.com/developerworks/cn/java/j-lo-uidsl/index.html
»ùÓÚ Java µÄ½çÃæ²¼¾Ö DSL µÄÉè¼ÆÓëʵÏÖ
 
 
 
¼¶±ð£º Öм¶
Ëï Ãù
µË »Ô

2007 Äê 9 ÔÂ 11 ÈÕ
½çÃæÉè¼ÆÓ¦¸ÃÊÇÒ»Ïî³äÂú´´ÔìÐÔ¡¢¸»ÓÐÀÖȤµÄ¹¤×÷£¬µ«ÊÇÈ´ÍùÍù±»ÈÏΪ·Ç³£µÄ¿ÝÔïºÍ·±Ëö¡£¾¿ÆäÔ­Òò£¬ÊÇÒòΪ½çÃæ²¼¾ÖÁìÓòËù²ÉÓõÄÃè ......

javaÖе÷Óô洢¹ý³Ì

public int ExecProcAdd()
        {
            SqlCommand cmd = new SqlCommand();
            cmd.CommandType = CommandType.StoredProcedu ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ