List of usage examples for java.nio.file InvalidPathException getIndex
public int getIndex()
From source file:Test.java
public static void main(String[] args) { try {// ww w. j a va 2 s .c o m Path path = Paths.get("/home\0", "docs", "users.txt"); System.out.println("Absolute path: " + path.toAbsolutePath()); } catch (InvalidPathException ex) { System.out.println("Bad path: [" + ex.getInput() + "] at position " + ex.getIndex()); } }