DocumentContent.java |
1 /* 2 * DocumentContent.java 3 * 4 * Copyright (c) 1998-2005, The University of Sheffield. 5 * 6 * This file is part of GATE (see http://gate.ac.uk/), and is free 7 * software, licenced under the GNU Library General Public License, 8 * Version 2, June 1991 (in the distribution as file licence.html, 9 * and also available at http://gate.ac.uk/gate/licence.html). 10 * 11 * Hamish Cunningham, 15/Feb/2000 12 * 13 * $Id: DocumentContent.java,v 1.12 2005/01/11 13:51:30 ian Exp $ 14 */ 15 16 package gate; 17 18 import java.io.Serializable; 19 20 import gate.util.InvalidOffsetException; 21 22 /** The content of Documents. 23 */ 24 public interface DocumentContent extends Serializable { 25 26 /** The contents under a particular span. */ 27 public DocumentContent getContent(Long start, Long end) 28 throws InvalidOffsetException; 29 30 /** The size of this content (e.g. character length for textual 31 * content). 32 */ 33 public Long size(); 34 35 } // interface DocumentContent 36