Class AbstractPropertiesFile

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<java.io.File>
    Direct Known Subclasses:
    EmailAccountPropertiesFile

    public abstract class AbstractPropertiesFile
    extends java.io.File
    This class exists to provide common functionality to all the application objects which are meant to extend File
    Author:
    Michael Remijan mjremijan@yahoo.com @mjremijan
    See Also:
    Serialized Form
    • Field Summary

      • Fields inherited from class java.io.File

        pathSeparator, pathSeparatorChar, separator, separatorChar
    • Constructor Summary

      Constructors 
      Constructor Description
      AbstractPropertiesFile​(java.io.File parent, java.lang.String relativePath)
      Pass to super constructor w/o error checking
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.Properties toProperties()
      Return a Properties object representation of this file.
      • Methods inherited from class java.io.File

        canExecute, canRead, canWrite, compareTo, createNewFile, createTempFile, createTempFile, delete, deleteOnExit, equals, exists, getAbsoluteFile, getAbsolutePath, getCanonicalFile, getCanonicalPath, getFreeSpace, getName, getParent, getParentFile, getPath, getTotalSpace, getUsableSpace, hashCode, isAbsolute, isDirectory, isFile, isHidden, lastModified, length, list, list, listFiles, listFiles, listFiles, listRoots, mkdir, mkdirs, renameTo, setExecutable, setExecutable, setLastModified, setReadable, setReadable, setReadOnly, setWritable, setWritable, toPath, toString, toURI, toURL
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • AbstractPropertiesFile

        public AbstractPropertiesFile​(java.io.File parent,
                                      java.lang.String relativePath)
        Pass to super constructor w/o error checking
        Parameters:
        parent - The parent, relative to the relativePath parameter
        relativePath - The relative path to the resource from the parent
    • Method Detail

      • toProperties

        public java.util.Properties toProperties()
        Return a Properties object representation of this file.
        Returns:
        Return a Properties object, never return null
        Throws:
        java.lang.RuntimeException - Wraps any other exception which might be thrown