blob: 8be81aa8fb2df648171029b2bd828fd69678e69d [file] [log] [blame]
Stuart McCulloch39cc9ac2012-07-16 13:43:38 +00001package aQute.bnd.osgi;
Stuart McCullochbb014372012-06-07 21:57:32 +00002
3import java.io.*;
4
5public interface Resource {
Stuart McCulloch2286f232012-06-15 13:27:53 +00006 InputStream openInputStream() throws Exception;
7
Stuart McCullochbb014372012-06-07 21:57:32 +00008 void write(OutputStream out) throws Exception;
Stuart McCulloch2286f232012-06-15 13:27:53 +00009
Stuart McCullochbb014372012-06-07 21:57:32 +000010 long lastModified();
Stuart McCulloch2286f232012-06-15 13:27:53 +000011
Stuart McCullochbb014372012-06-07 21:57:32 +000012 void setExtra(String extra);
Stuart McCulloch2286f232012-06-15 13:27:53 +000013
Stuart McCullochbb014372012-06-07 21:57:32 +000014 String getExtra();
Stuart McCulloch2286f232012-06-15 13:27:53 +000015
Stuart McCullochbb014372012-06-07 21:57:32 +000016 long size() throws Exception;
17}