パッケージ org.nkjmlab.util.java.io

クラス SystemFileUtils

java.lang.Object
org.nkjmlab.util.java.io.SystemFileUtils

public class SystemFileUtils extends Object
  • コンストラクタの詳細

    • SystemFileUtils

      public SystemFileUtils()
  • メソッドの詳細

    • getTempDirectory

      public static File getTempDirectory()
      Getting a temp file object of the temporal directory which is referenced by System.getProperty("java.io.tmpdir").
      戻り値:
    • getTempDirectoryPath

      public static Path getTempDirectoryPath()
      Getting a path object of the temporal directory which is referenced by System.getProperty("java.io.tmpdir").
      戻り値:
    • getTempDirectoryPathString

      public static String getTempDirectoryPathString()
      Getting a string object of the temporal directory which is referenced by System.getProperty("java.io.tmpdir").
      戻り値:
    • getUserDirectory

      public static File getUserDirectory()
      Getting a file object of the temporal directory which is referenced by System.getProperty("user.home").
      戻り値:
    • getUserDirectoryPath

      public static Path getUserDirectoryPath()
      Getting a path object of the directory which is referenced by System.getProperty("user.home").
      戻り値:
    • getUserHomeDirectoryPathString

      public static String getUserHomeDirectoryPathString()
      Getting a string object of the directory which is referenced by System.getProperty("user.home").
      戻り値:
    • getCurrentDirectoryPathString

      public static String getCurrentDirectoryPathString()
    • getCurrentDirectory

      public static File getCurrentDirectory()
    • getFileInCurrentDirectory

      public static File getFileInCurrentDirectory(String relativePath)
    • getTempFile

      public static File getTempFile(File parent, String fileName)
      Getting a temp file object in the directory in temporal directory which is referenced by System.getProperty("java.io.tmpdir").
      パラメータ:
      parent -
      fileName -
      戻り値:
    • getTempFile

      public static File getTempFile(String fileName)
      Getting a temp file object in the temporal directory which is referenced by System.getProperty("java.io.tmpdir").
      パラメータ:
      fileName -
      戻り値:
    • getFileInUserDirectory

      public static File getFileInUserDirectory(String fileName)
      Getting a file object in the user directory which is referenced by System.getProperty("user.home").
      パラメータ:
      fileName -
      戻り値:
    • getFileInUserDirectory

      public static File getFileInUserDirectory(File parent, String fileName)
      Getting a file object in the user directory which is referenced by System.getProperty("user.home").
      パラメータ:
      parent -
      fileName -
      戻り値: