JAVA Code:
URI destURI = destPhyPath.toURI();
//gsiftp://vl04.grid.sinica.edu.tw/storage/euasia/55068857b8ccaf0f8538b419cd3e94d7/609b46ac/-d5e5-4c/20-9248-/9a3ca3c5/9477/c7aa41/86-8e5/7-4521/-8bd4-/43adb0/aa2eb3
String destHost = destURI.getHost();// remote
// host:vl04.grid.sinica.edu.tw
int destPort = ((destURI.getPort() == -1) ? 2811 : destURI.getPort());
String destPath = destURI.getPath();// remote
// path:/storage/euasia/55068857b8ccaf0f8538b419cd3e94d7/609b46ac/-d5e5-4c/20-9248-/9a3ca3c5/9477/c7aa41/86-8e5/7-4521/-8bd4-/43adb0/aa2eb3
沒有留言:
張貼留言