Package com.intuit.karate.resource
Class MemoryResource
- java.lang.Object
-
- com.intuit.karate.resource.MemoryResource
-
-
Field Summary
-
Fields inherited from interface com.intuit.karate.resource.Resource
CLASSPATH_COLON, FILE_COLON, THIS_COLON
-
-
Constructor Summary
Constructors Constructor Description MemoryResource(File file, byte[] bytes)MemoryResource(File file, String text)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FilegetFile()StringgetRelativePath()InputStreamgetStream()URIgetUri()booleanisClassPath()booleanisFile()Resourceresolve(String path)StringtoString()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.intuit.karate.resource.Resource
getFileNameWithoutExtension, getPackageQualifiedName, getPrefixedParentPath, getPrefixedPath
-
-
-
-
Method Detail
-
isClassPath
public boolean isClassPath()
- Specified by:
isClassPathin interfaceResource
-
getRelativePath
public String getRelativePath()
- Specified by:
getRelativePathin interfaceResource
-
getStream
public InputStream getStream()
-
-