org.osgi.service.indexer
public interface Resource
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
LAST_MODIFIED
the name of the lastmodified attribute
|
static java.lang.String |
LOCATION
the name of the location attribute
|
static java.lang.String |
NAME
the name of the name attribute
|
static java.lang.String |
SIZE
the name of the size attribute
|
Modifier and Type | Method and Description |
---|---|
void |
close()
Close the resource
|
Resource |
getChild(java.lang.String path) |
java.lang.String |
getLocation() |
java.util.jar.Manifest |
getManifest() |
java.util.Dictionary<java.lang.String,java.lang.Object> |
getProperties() |
long |
getSize() |
java.io.InputStream |
getStream() |
java.util.List<java.lang.String> |
listChildren(java.lang.String prefix) |
static final java.lang.String NAME
static final java.lang.String LOCATION
static final java.lang.String SIZE
static final java.lang.String LAST_MODIFIED
java.lang.String getLocation()
java.util.Dictionary<java.lang.String,java.lang.Object> getProperties()
long getSize()
java.io.InputStream getStream() throws java.io.IOException
java.io.IOException
- when an I/O error occurredjava.util.jar.Manifest getManifest() throws java.io.IOException
java.io.IOException
- when an I/O error occurredjava.util.List<java.lang.String> listChildren(java.lang.String prefix) throws java.io.IOException
prefix
- the prefix of the children that must be returned (typically
the directory in the JAR)java.io.IOException
- when an I/O error occurredResource getChild(java.lang.String path) throws java.io.IOException
path
- the path of the child (typically the path in the JAR)java.io.IOException
- when an I/O error occurredvoid close()