Ignore:
Timestamp:
2016-09-11T12:13:06+02:00 (4 years ago)
Author:
wiktorn
Message:

WMTS TileSource refactor

  • introduced GetCapabilitiesParseHelper, that can be reused for WMS
  • replaced all dynamix QNames with static ones
  • added CacheFile.clear() method
  • clearing CacheFile on WMTS GetCapabilities parse error
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/io/CachedFile.java

    r10686 r10993  
    525525        }
    526526    }
     527
     528    /**
     529     * Clears the cached file
     530     * @throws IOException
     531     * @since 10993
     532     */
     533    public void clear() throws IOException {
     534        File f = getFile();
     535        if (f != null && f.exists()) {
     536            Utils.deleteFile(f);
     537        }
     538    }
    527539}
Note: See TracChangeset for help on using the changeset viewer.