类 SystemSupport

java.lang.Object
tech.mhuang.pacebox.core.system.SystemSupport

public class SystemSupport extends Object
系统扩展类
从以下版本开始:
1.0.0
作者:
mhuang
  • 构造器详细资料

    • SystemSupport

      public SystemSupport()
  • 方法详细资料

    • isSymLink

      public static boolean isSymLink(File file)
      Invokes isSymbolicLink
      参数:
      file - The file to check
      返回:
      true if the file is a symbolic link
    • readSymbolicLink

      public static File readSymbolicLink(File symlink) throws IOException
      Reads the target of a symbolic link
      参数:
      symlink - The symlink to read
      返回:
      The location the symlink is pointing to
      抛出:
      IOException - Upon failure
    • createSymbolicLink

      public static File createSymbolicLink(File symlink, File target) throws IOException
      Creates a symbolic link
      参数:
      symlink - The symlink to create
      target - Where it should point
      返回:
      The newly created symlink
      抛出:
      IOException - upon error
    • delete

      public static void delete(File file) throws IOException
      Performs a nio delete
      参数:
      file - the file to delete
      抛出:
      IOException - Upon error