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