KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jahia > services > fileextraction > FileExtractor


1 package org.jahia.services.fileextraction;
2
3 import java.io.InputStream JavaDoc;
4
5
6 public interface FileExtractor {
7
8    /**
9     *
10     * @param path String
11     * @param lastModified long
12     * @param fileStream InputStream
13     * @throws Exception
14     * @return String
15     */

16    public abstract ExtractedDocument getExtractedDocument(
17                                              String JavaDoc path,
18                                              long lastModified,
19                                              InputStream JavaDoc fileStream)
20    throws Exception JavaDoc;
21
22    /**
23    *
24    * @param path String
25    * @param lastModified long
26    * @param fileStream InputStream
27    * @param charSet String
28    * @throws Exception
29    * @return String
30    */

31   public abstract ExtractedDocument getExtractedDocument(
32                                             String JavaDoc path,
33                                             long lastModified,
34                                             InputStream JavaDoc fileStream,
35                                             String JavaDoc charSet)
36   throws Exception JavaDoc;
37    
38     /**
39      *
40      * @param path String
41      * @param lastModified long
42      * @param fileStream InputStream
43      * @throws Exception
44      * @return String
45      */

46     public abstract String JavaDoc getContentAsString(String JavaDoc path,
47                                               long lastModified,
48                                               InputStream JavaDoc fileStream)
49     throws Exception JavaDoc;
50
51     /**
52      *
53      * @param path String
54      * @param lastModified long
55      * @param fileStream InputStream
56      * @return String
57      */

58     public abstract String JavaDoc getContentAsString(String JavaDoc path,
59                                               long lastModified,
60                                               InputStream JavaDoc fileStream,
61                                               String JavaDoc charSet) throws Exception JavaDoc;
62
63 }
64
Popular Tags