Class Version


  • public class Version
    extends Object
    Provides basic information about the currently used JOSM build.
    Since:
    2358
    • Constructor Detail

    • Method Detail

      • getInstance

        public static Version getInstance()
        Replies the unique instance of the version information
        Returns:
        the unique instance of the version information
      • initFromRevisionInfo

        protected void initFromRevisionInfo​(InputStream revisionInfo)
        Initializes the version infos from the revision resource file
        Parameters:
        revisionInfo - the revision info from a revision resource file as InputStream
      • init

        public void init()
        Initializes version info
      • getVersionString

        public String getVersionString()
        Replies the version string. Either the SVN revision "1234" (as string) or the the I18n equivalent of "UNKNOWN".
        Returns:
        the JOSM version
      • getReleaseAttributes

        public String getReleaseAttributes()
        Replies a text with the release attributes
        Returns:
        a text with the release attributes
      • getTime

        public String getTime()
        Replies the build date as string
        Returns:
        the build date as string
      • isLocalBuild

        public boolean isLocalBuild()
        Replies true if this is a local build, i.e. an unofficial development build.
        Returns:
        true if this is a local build, i.e. an unofficial development build.
      • getAgentString

        public String getAgentString()
        Returns the User-Agent string
        Returns:
        The User-Agent
      • getAgentString

        public String getAgentString​(boolean includeOsDetails)
        Returns the User-Agent string, with or without OS details
        Parameters:
        includeOsDetails - Append Operating System details at the end of the User-Agent
        Returns:
        The User-Agent
        Since:
        5956
      • getFullAgentString

        public String getFullAgentString()
        Returns the full User-Agent string
        Returns:
        The User-Agent
        Since:
        5868