Java ClassLoader Load getSystemPath(String inPath)

Here you can find the source of getSystemPath(String inPath)

Description

get System Path

License

Open Source License

Declaration

public static String getSystemPath(String inPath) throws Exception 

Method Source Code


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

import java.net.URL;

public class Main {
    public static String getSystemPath(String inPath) throws Exception {
        return getUrl(inPath).toString().replace(getUrl(inPath).getProtocol() + ":/", "");
    }/*from w w  w  .  java2 s  .  c o m*/

    public static URL getUrl(String inPath) throws Exception {
        return new URL(ClassLoader.getSystemResource("") + inPath);
    }
}

Related

  1. getSimpleName(String fqcn)
  2. getSourcesPath()
  3. getSSTable(String version, int generation)
  4. getStream(final File file)
  5. getStreamForString(String source)
  6. getTestDir(final String name)
  7. getTestJson()
  8. getTomcatBinaryDistribution()
  9. getVolFile(String fileName)