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

    Fields
    Modifier and Type
    Field
    Description
    static final int
    1: Constant for indicating the resource is a result set; Use the getType method to retrieve the type of the resource.
    static final int
    0: Constant for indicating the resource is a stream; Use the getType method to retrieve the type of the resource.
    static final int
    -1: Constant for indicating the resource is unknown
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns a way to read the data of the resource.
    int
    Returns the type of the resource.
    Returns the unique identifier (UID) of the resource.
    Returns the URL of the resource.
    boolean
    Returns true if the resource can be read again, false otherwise.
    void
    Reads the resource again.
  • Field Details

  • 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()
      Returns true if the resource can be read again, false otherwise.
    • 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.