Package com.highdeal.iec
Interface Resource
- All Known Implementing Classes:
ResultSetResource
public interface Resource
This
Java interface represents a resource (file or URL) in a data collection.- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int1: Constant for indicating the resource is aresult set; Use thegetType methodto retrieve the type of the resource.static final int0: Constant for indicating the resource is a stream; Use thegetType methodto retrieve the type of the resource.static final int-1: Constant for indicating the resource is unknown -
Method Summary
Modifier and TypeMethodDescriptionReturns a way to read the data of the resource.intgetType()Returns the type of the resource.getUID()Returns the unique identifier (UID) of the resource.getURL()Returns the URL of the resource.booleanReturnstrueif the resource can be read again,falseotherwise.voidreload()Reads the resource again.
-
Field Details
-
STREAM
static final int STREAM0: Constant for indicating the resource is a stream; Use thegetType methodto retrieve the type of the resource.- See Also:
-
RESULTSET
static final int RESULTSET1: Constant for indicating the resource is aresult set; Use thegetType methodto retrieve the type of the resource.- See Also:
-
UNKNOWN
static final int UNKNOWN-1: Constant for indicating the resource is unknown- See Also:
-
-
Method Details
-
getUID
String getUID()Returns the unique identifier (UID) of the resource. -
getURL
URL getURL()Returns the URL of the resource. -
isReloadable
boolean isReloadable()Returnstrueif the resource can be read again,falseotherwise. -
reload
void reload()Reads the resource again. -
getTransport
Object getTransport()Returns a way to read the data of the resource. -
getType
int getType()Returns the type of the resource.
-