Class CacheFileProps


  • public class CacheFileProps
    extends java.lang.Object
    Manage a cache file's associated properties.
    Author:
    Matt Ward
    • Constructor Summary

      Constructors 
      Constructor Description
      CacheFileProps​(java.io.File cacheFile)
      Construct a CacheFileProps specifying which cache file the properties belong to.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void delete()
      Delete the cache file's associated properties file.
      boolean exists()
      Does a properties file exist for the cache file?
      long fileSize()
      Size of the properties file or 0 if it does not exist.
      java.lang.String getContentUrl()
      Get the value of the contentUrl property.
      java.lang.Integer getDeleteWatchCount()
      Get the value of the deleteWatchCount property.
      void load()
      Load properties from the cache file's associated properties file.
      void setContentUrl​(java.lang.String url)
      Set the value of the contentUrl property.
      void setDeleteWatchCount​(java.lang.Integer watchCount)
      Set the value of the deleteWatchCount property.
      void store()
      Save properties to the cache file's associated properties file.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • CacheFileProps

        public CacheFileProps​(java.io.File cacheFile)
        Construct a CacheFileProps specifying which cache file the properties belong to.
        Parameters:
        cacheFile - - cache file
    • Method Detail

      • load

        public void load()
        Load properties from the cache file's associated properties file.
      • store

        public void store()
        Save properties to the cache file's associated properties file.
      • delete

        public void delete()
        Delete the cache file's associated properties file.
      • exists

        public boolean exists()
        Does a properties file exist for the cache file?
        Returns:
        true if the file exists
      • fileSize

        public long fileSize()
        Size of the properties file or 0 if it does not exist.
        Returns:
        file size in bytes.
      • setContentUrl

        public void setContentUrl​(java.lang.String url)
        Set the value of the contentUrl property.
        Parameters:
        url - String
      • getContentUrl

        public java.lang.String getContentUrl()
        Get the value of the contentUrl property.
        Returns:
        contentUrl
      • setDeleteWatchCount

        public void setDeleteWatchCount​(java.lang.Integer watchCount)
        Set the value of the deleteWatchCount property.
        Parameters:
        watchCount - Integer
      • getDeleteWatchCount

        public java.lang.Integer getDeleteWatchCount()
        Get the value of the deleteWatchCount property.
        Returns:
        deleteWatchCount