Class FileWrapper

    • Field Summary

      • Fields inherited from class java.io.File

        pathSeparator, pathSeparatorChar, separator, separatorChar
    • Constructor Summary

      Constructors 
      Constructor Description
      FileWrapper​(java.io.File file)
      Creates a new File instance matching a given File object.
      FileWrapper​(java.io.File parent, java.lang.String child)
      Creates a new File instance from a parent abstract pathname and a child pathname string.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean exists()
      Returns whether the resource actually exists.
      java.io.InputStream getContents()
      Returns an InputStream object on the file content.
      java.lang.String getOsLocation()
      Returns the OS path of the folder location (may be absolute).
      java.io.OutputStream getOutputStream()
      Returns an OutputStream to write into the file.
      void setContents​(java.io.InputStream source)
      Sets the content of the file.
      • Methods inherited from class java.io.File

        canExecute, canRead, canWrite, compareTo, createNewFile, createTempFile, createTempFile, delete, deleteOnExit, equals, 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

      • FileWrapper

        public FileWrapper​(java.io.File file)
        Creates a new File instance matching a given File object.
        Parameters:
        file - the file to match
      • FileWrapper

        public FileWrapper​(java.io.File parent,
                           java.lang.String child)
        Creates a new File instance from a parent abstract pathname and a child pathname string.
        Parameters:
        parent - the parent pathname
        child - the child name
        See Also:
        File(File, String)