java.io.Fileとjava.nio.file.Pathの変換サンプル
Javaコード:
File file = new File('\tmp\xxx.tmp’)
// File–>Path
Path srcPath = file.toPath()
// Path–>File
File toFile = srcPath.toFile()
Coding Changes the World
Javaコード:
File file = new File('\tmp\xxx.tmp’)
// File–>Path
Path srcPath = file.toPath()
// Path–>File
File toFile = srcPath.toFile()