Java ClassLoader Load getSourcesPath()

Here you can find the source of getSourcesPath()

Description

get Sources Path

License

Apache License

Declaration

public static String getSourcesPath() throws UnsupportedEncodingException 

Method Source Code

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

import java.io.UnsupportedEncodingException;
import java.net.URLDecoder;

public class Main {

    public static String getSourcesPath() throws UnsupportedEncodingException {
        return URLDecoder.decode(ClassLoader.getSystemResource("").getFile(), "utf-8");
    }//from   w  w  w .  j  ava 2  s.co  m
}

Related

  1. getProperties(String bundleName, String fileName)
  2. getProperty(String propertyName)
  3. getReader(final String name, final String encoding)
  4. getRootPath()
  5. getSimpleName(String fqcn)
  6. getSSTable(String version, int generation)
  7. getStream(final File file)
  8. getStreamForString(String source)
  9. getSystemPath(String inPath)