1 package org.sapia.soto.util; 2 3 import java.io.IOException; 4 import java.io.InputStream; 5 6 7 /** 8 * Abstracts a URL resource. 9 * 10 * @author Yanick Duchesne 11 * 12 * <dl> 13 * <dt><b>Copyright:</b><dd>Copyright © 2002-2004 <a HREF="http://www.sapia-oss.org">Sapia Open Source Software</a>. All Rights Reserved.</dd></dt> 14 * <dt><b>License:</b><dd>Read the license.txt file of the jar or visit the 15 * <a HREF="http://www.sapia-oss.org/license.html">license page</a> at the Sapia OSS web site</dd></dt> 16 * </dl> 17 */ 18 public interface Resource { 19 /** 20 * @return the time, in <code>millis</code>, at which this resource was last modified. 21 */ 22 public long lastModified(); 23 24 /** 25 * @return the URI that this resource corresponds to. 26 */ 27 public String getURI(); 28 29 /** 30 * @return the <code>InputStream</code> corresponding to this resource. 31 * @throws IOException 32 */ 33 public InputStream getInputStream() throws IOException; 34 } 35