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()

Java

Posted by arkgame