public class MockResource extends AbstractResource
Constructor and Description |
---|
MockResource(String path,
String content) |
Modifier and Type | Method and Description |
---|---|
boolean |
exists() |
InputStream |
openInputStream()
Opens an input stream to read from this resource.
|
Resource |
resolve(String other)
Resolve the given path against this resource.
|
Resource |
resolveSibling(String other)
Resolves the given path against this resource's parent path.
|
equals, getPath, getUri, hashCode, isWritable, openOutputStream, resolvePath, resolveSiblingPath, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
openOutputStream
public boolean exists()
public Resource resolve(String other)
Resource
public Resource resolveSibling(String other)
Resource
public InputStream openInputStream() throws IOException
Resource
IOException
- if there is an error reading from the resource, including if the resource does not exist or cannot be read.Copyright © 2023 Liquibase.org. All rights reserved.