Search

Thứ Năm, 13 tháng 2, 2014

Create Path from URI

import java.net.URI;
import java.nio.file.Files;
import java.nio.file.Paths;

public class Test {

  public static void main(String[] argsthrows Exception{
    Files.delete(Paths.get(new URI("file:///tmp.txt")));
  }
}

0 nhận xét:

Đăng nhận xét

 
Le Van Chat