- Timestamp:
- 2003-11-24T14:26:35+13:00 (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl3/src/java/org/greenstone/gsdl3/gs3build/doctypes/TextDocument.java
r5800 r5944 15 15 public class TextDocument extends AbstractDocument 16 16 { 17 17 public static final String TEXT_DOCUMENT_TYPE = "Text"; 18 18 19 public TextDocument(URL url)20 { super(url);21 19 public TextDocument(DocumentID id) 20 { super(id); 21 } 22 22 23 public String getDocumentType()24 { return TEXT_DOCUMENT_TYPE;25 23 public TextDocument(URL url) 24 { super(url); 25 } 26 26 27 /** 28 * A pretty minimal and lazy document text extraction process. 29 */ 30 public String getDocumentText() 31 { return DocumentLoader.getAsString((URL) this.fileSet.getFile(0).getLocation()); 32 } 27 public String getDocumentType() 28 { return TEXT_DOCUMENT_TYPE; 29 } 30 31 /** 32 * A pretty minimal and lazy document text extraction process. 33 */ 34 public String getDocumentText() 35 { return DocumentLoader.getAsString((URL) this.fileSet.getFile(0).getLocation()); 36 } 33 37 }
Note:
See TracChangeset
for help on using the changeset viewer.