|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jbehave.core.io.CodeLocations
public class CodeLocations
Collection of utility methods to create code location URLs
| Nested Class Summary | |
|---|---|
static class |
CodeLocations.InvalidCodeLocation
|
| Constructor Summary | |
|---|---|
CodeLocations()
|
|
| Method Summary | |
|---|---|
static URL |
codeLocationFromClass(Class<?> codeLocationClass)
Creates a code location URL from a class |
static URL |
codeLocationFromPath(String filePath)
Creates a code location URL from a file path |
static URL |
codeLocationFromURL(String url)
Creates a code location URL from a URL |
static String |
getPathFromURL(URL url)
Get absolute path from URL objects starting with file: This method takes care of decoding %-encoded chars, e.g. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CodeLocations()
| Method Detail |
|---|
public static URL codeLocationFromClass(Class<?> codeLocationClass)
codeLocationClass - the class
CodeLocations.InvalidCodeLocation - if URL creation failspublic static URL codeLocationFromPath(String filePath)
filePath - the file path
CodeLocations.InvalidCodeLocation - if URL creation failspublic static URL codeLocationFromURL(String url)
url - the URL external form
CodeLocations.InvalidCodeLocation - if URL creation failspublic static String getPathFromURL(URL url)
url - the file-URL
CodeLocations.InvalidCodeLocation - if URL contains format errors
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||