WIT - develop descriptions

This page describes sample usages for calling WIT functions in a Java code. You should have basic knowledge of Java programming. It is very helpful to look at on-line Java API Specification  Java API  

Usage:

doc.getDocStream() return a string that has all html tags removed.

If you do not check if the required page have been crawled in cache directory, simply create a DocumentItem class by giving a URL string.
The URL strings and anchor texts  are in html tag <a>...</a>, you need postprocess it to retrieve URL string and anchor text separately.

While the third argument equal to "false", The function will create the new index for cached web page; Otherwise, while it is "true", the function will attach the index to the original index files.


WIT example WITExample1.java
WITExample2.java,


Please send your questions and feedback to     ( last update 31st Aug 2006 )


        Copyright @ 2005~2006 CALD CMU. All rights reserved.