public class Resource extends Object
Constructor and Description |
---|
Resource(File file,
String relativePath) |
Resource(Path path) |
Resource(Path path,
String relativePath,
int line) |
Resource(ScenarioContext sc,
String relativePath) |
Resource(URL url) |
Modifier and Type | Method and Description |
---|---|
String |
getAsString() |
String |
getFileNameWithoutExtension() |
int |
getLine() |
String |
getPackageQualifiedName() |
Path |
getPath() |
String |
getRelativePath() |
InputStream |
getStream() |
String |
toString() |
public static final Resource EMPTY
public Resource(URL url)
public Resource(Path path)
public Resource(ScenarioContext sc, String relativePath)
public String getFileNameWithoutExtension()
public String getRelativePath()
public String getPackageQualifiedName()
public Path getPath()
public int getLine()
public InputStream getStream()
public String getAsString()
Copyright © 2020. All rights reserved.