Uploaded image for project: 'Spatial Information Systems'
  1. Spatial Information Systems
  2. SIS-109

Replace the boolean value of DataStore.canOpen(...) by an enum

VotersWatch issueWatchersLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Task
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.3
    • 0.4
    • Storage
    • None

    Description

      The DataStore.canOpen(StorageConnection) method currently returns a Boolean. It should be a set of Enum values instead. The enumeration would contains at least READ, WRITE, APPEND and maybe an UNKNOWN value exclusive with all others. An empty set would means that the DataStore does not recognize the format (it can neither read or write it).

      The proposed enumeration is similar to the StandardOpenOption provided in JDK7. Maybe we should leverage that enumeration. However we would need to provide a replacement for the JDK6 branches.

      Attachments

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            desruisseaux Martin Desruisseaux
            desruisseaux Martin Desruisseaux
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment