- Timestamp:
- 2004-01-06T11:44:24+13:00 (20 years ago)
- Location:
- trunk/gsdl3/src/java/org/greenstone/gsdl3/gs3build/doctypes
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl3/src/java/org/greenstone/gsdl3/gs3build/doctypes/DocumentList.java
r6101 r6346 32 32 GS3SQLConnection connection; // used to query the SQL database 33 33 34 private static final int maxSize = 10;34 private static final int maxSize = 3; 35 35 36 36 public DocumentList(GS3SQLConnection connection) 37 37 { this.idFactory = null; 38 this.list = new DocumentInterface[ 10];38 this.list = new DocumentInterface[3]; 39 39 this.used = 0; 40 this.size = 10;40 this.size = 3; 41 41 this.count = 0; 42 42 this.connection = connection; … … 45 45 public DocumentList(DocumentIDFactoryInterface idFactory, GS3SQLConnection connection) 46 46 { this.idFactory = idFactory; 47 this.list = new DocumentInterface[ 10];47 this.list = new DocumentInterface[3]; 48 48 this.used = 0; 49 this.size = 10;49 this.size = 3; 50 50 this.count = 0; 51 51 this.connection = connection; -
trunk/gsdl3/src/java/org/greenstone/gsdl3/gs3build/doctypes/HTMLDocument.java
r6284 r6346 55 55 // HTMLDoc htmlDoc; 56 56 HTMLTidy tidyDoc; 57 if (url.getProtocol().equals("file")) 58 { 59 } 57 60 if (url.toString().startsWith("file://")) 58 61 { //htmlDoc = new HTMLDoc(url, url.toString().substring(7)); … … 68 71 } 69 72 73 System.out.println(Runtime.getRuntime().freeMemory() + " " + Runtime.getRuntime().totalMemory()); 74 70 75 this.domDocument = tidyDoc.getDocument(); 76 77 Runtime.getRuntime().gc(); 78 System.out.println(Runtime.getRuntime().freeMemory() + " " + Runtime.getRuntime().totalMemory()); 71 79 } 72 80
Note:
See TracChangeset
for help on using the changeset viewer.