Java Path File Name nio getFileName(Path path)

Here you can find the source of getFileName(Path path)

Description

get File Name

License

Open Source License

Declaration

public static String getFileName(Path path) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

import java.nio.file.Path;

public class Main {
    public static String getFileName(Path path) {
        return path.getFileName().toString();
    }/*from   w w w .  j a v a  2 s.c  o  m*/
}

Related

  1. getFileInFolder(Path p, String filename)
  2. getFilename (final String filepath)
  3. getFilename(final Path path)
  4. getFilename(final Path path)
  5. getFileName(Path path)
  6. getFileName(String fullPath, boolean withParentFolder)
  7. getFileName(String path)
  8. getFileName(String relativePath)
  9. getFileNameFromPath(String filePath)