public class FileStubResource extends java.lang.Object implements StubResource
File
-based implementation of StubResource
.Constructor and Description |
---|
FileStubResource(java.io.File file)
Constructs a
StubResource for the specified stub file. |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getDescription()
Returns a user-friendly description of the resource (e.g.
|
java.io.InputStream |
getInputStream()
Returns a stream for reading the contents of the resource.
|
public FileStubResource(java.io.File file)
StubResource
for the specified stub file.file
- the stub filepublic java.lang.String getDescription()
StubResource
getDescription
in interface StubResource
public java.io.InputStream getInputStream() throws java.io.IOException
StubResource
getInputStream
in interface StubResource
java.io.IOException