List of utility methods to do Path Convert To
String | pathToResource(final String name) path To Resource return ClassLoader.getSystemClassLoader().getResource(name).getPath();
|
String | pathToSelfLink() path To Self Link return pathToLink("self"); |
String | pathToString(double[][] p) path To String if (p == null) return null; StringBuilder sb = new StringBuilder(); for (int i = 0; i < p.length; i++) { if (i > 0) sb.append(", "); coordinatesToString(p[i], sb); return sb.toString(); |
String | pathToURI(String path) path To URI StringBuffer buf = new StringBuffer(); char[] c = path.toCharArray(); if (c.length > 0) { buf.append("file://"); if (c[0] != '/') { buf.append('/'); for (int i = 0; i < c.length; i++) { ... |