public interface ResourceSetReader
The implementation class specified by the connector descriptor must:
Clients may implement this interface.
Modifier and Type | Method and Description |
---|---|
ResourceSet |
read(String uri,
ConnectorContext context)
Reads a resource set from the specified uri (resource locator).
|
ResourceSet read(String uri, ConnectorContext context) throws CoreException
The uri denotes a resource location to handle. The form of the uri depends on the connector kind. If this is a file connector, this uri is
expected to be a valid file path. If this is a "no uri" connector, this uri is expected to be null
or an empty String
.
The context can be used to access a variety of properties and is to be used to check for cancellation.
uri
- the location of a resource to read (can be null
).context
- the context in which this reader runs.CoreException
- if anything prevents the connector to read the resource set.ConnectorDescriptor.getKind()