Java Path Resolve nio resolveSymLink(Path link)

Here you can find the source of resolveSymLink(Path link)

Description

resolve Sym Link

License

Apache License

Declaration

public static File resolveSymLink(Path link) throws IOException 

Method Source Code


//package com.java2s;
//License from project: Apache License 

import java.io.File;
import java.io.IOException;

import java.nio.file.Files;
import java.nio.file.Path;

public class Main {
    public static File resolveSymLink(Path link) throws IOException {
        return Files.readSymbolicLink(link).toFile();
    }/*from  ww w  .java  2 s .  com*/
}

Related

  1. resolveBagUri(final Path baseDir, final URI bagUri)
  2. resolveForSymbolic(final Path path)
  3. resolveMaxStep(String rootPath)
  4. resolvePath(final Path baseDirPath, final Path userPath)
  5. resolvePathElements(final Path path)