|
||||||||||
| 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 java.net.URL |
codeLocationFromClass(java.lang.Class<?> codeLocationClass)
Creates a code location URL from a class |
static java.net.URL |
codeLocationFromPath(java.lang.String filePath)
Creates a code location URL from a file path |
static java.net.URL |
codeLocationFromURL(java.lang.String url)
Creates a code location URL from a URL |
static java.lang.String |
getPathFromURL(java.net.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 java.net.URL codeLocationFromClass(java.lang.Class<?> codeLocationClass)
codeLocationClass - the class
CodeLocations.InvalidCodeLocation - if URL creation failspublic static java.net.URL codeLocationFromPath(java.lang.String filePath)
filePath - the file path
CodeLocations.InvalidCodeLocation - if URL creation failspublic static java.net.URL codeLocationFromURL(java.lang.String url)
url - the URL external form
CodeLocations.InvalidCodeLocation - if URL creation failspublic static java.lang.String getPathFromURL(java.net.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 | |||||||||