|
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface DocumentScanner
This interface represents the concept of document scanner for a given file type.
CAUTION: an implementation of DocumentScanner interface must allow backtracking exceptions of InterruptedException type. Otherwise, the Indexing Service could not be stopped in case of redeployment of the considered web application on the server.
| Method Summary | |
|---|---|
java.lang.String |
getDocumentTitle()
Return the title of the scanned document, if exists, otherwise return an empty string. |
WordDictionary |
scanWebPage(java.lang.String documentFilename)
This method starts the scanning process for the considered document. |
| Method Detail |
|---|
java.lang.String getDocumentTitle()
WordDictionary scanWebPage(java.lang.String documentFilename)
throws DocumentScannerException,
java.lang.InterruptedException
documentFilename - the document filename
DocumentScannerException - This exception is thrown if the scanner can not handle the document. In this case,
it is likely that the file extension does not correspond with the exact nature of the considered document.
java.lang.InterruptedException - This exception is thrown if the current web application thread pool is shutdown for
redeployment considerations.
|
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||