public interface Resource
Java interface represents a resource (file or URL) in a data collection.DataCollection,
ResultSetResource| Modifier and Type | Field and Description |
|---|---|
static int |
RESULTSET
1: Constant for indicating the resource is a
result set;
Use the getType method to retrieve the type of the resource. |
static int |
STREAM
0: Constant for indicating the resource is a stream;
Use the
getType method to retrieve the type of the resource. |
static int |
UNKNOWN
-1: Constant for indicating the resource is unknown
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
getTransport()
Returns a way to read the data of the resource.
|
int |
getType()
Returns the type of the resource.
|
java.lang.String |
getUID()
Returns the unique identifier (UID) of the resource.
|
java.net.URL |
getURL()
Returns the URL of the resource.
|
boolean |
isReloadable()
Returns
true if the resource can be read again, false otherwise. |
void |
reload()
Reads the resource again.
|
static final int STREAM
getType method to retrieve the type of the resource.static final int RESULTSET
result set;
Use the getType method to retrieve the type of the resource.static final int UNKNOWN
java.lang.String getUID()
java.net.URL getURL()
boolean isReloadable()
true if the resource can be read again, false otherwise.void reload()
java.lang.Object getTransport()
int getType()