Changeset 8493
- Timestamp:
- 2004-11-09T11:29:14+13:00 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl3/src/java/org/greenstone/gsdl3/gs3build/doctypes/RecogniserManager.java
r7479 r8493 13 13 int used; 14 14 int size; 15 16 public RecogniserManager( )15 DocumentList docList; 16 public RecogniserManager(DocumentList documentList) 17 17 { this.list = new RecogniserInterface[10]; 18 18 this.used = 0; 19 19 this.size = 10; 20 this.docList = documentList; 20 21 } 21 22 … … 30 31 } 31 32 catch (ClassNotFoundException ex) { 33 System.err.println(ex); 32 34 } 33 35 … … 37 39 } 38 40 catch (InstantiationException instEx) { 41 System.err.println(instEx); 39 42 } 40 43 catch (IllegalAccessException accEx) { 44 System.err.println(accEx); 41 45 } 42 46 } … … 45 49 * 46 50 */ 47 public void addRecogniser(RecogniserInterface recogniser) 48 { this.ensureCapacity(this.used + 1); 49 50 this.list[this.used] = recogniser; 51 this.used ++; 52 } 51 public void addRecogniser(RecogniserInterface recogniser) 52 { 53 recogniser.setListRepository(this.docList); 54 this.ensureCapacity(this.used + 1); 55 56 this.list[this.used] = recogniser; 57 this.used ++; 58 } 53 59 54 60 public void processFile(URL url) … … 63 69 64 70 public void processFile(File file) 65 { URL url = URLTools.getFileURL(file); 71 { 72 System.err.println("processing file "+file.getPath()); 73 URL url = URLTools.getFileURL(file); 66 74 67 75 if (url != null)
Note:
See TracChangeset
for help on using the changeset viewer.