| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | |
| public InputStream | openInputStream()
Implements liquibase. Opens an input stream to read from this resource. |
| public Resource | resolve(String other)
Implements liquibase. Resolve the given path against this resource. |
| public Resource | resolveSibling(String other)
Implements liquibase. Resolves the given path against this resource's parent path. |
| content | back to summary |
|---|---|
| private final String content | |
| MockResource | back to summary |
|---|---|
| public MockResource(String path, String content) | |
| exists | back to summary |
|---|---|
| public boolean exists() Implements liquibase.
| |
| openInputStream | back to summary |
|---|---|
| public InputStream openInputStream() throws IOException Implements liquibase. Doc from liquibase. Opens an input stream to read from this resource.
| |
| resolve | back to summary |
|---|---|
| public Resource resolve(String other) Implements liquibase. Doc from liquibase. Resolve the given path against this resource. If other is an empty path then this method trivially returns this path. Otherwise this method considers this resource to be a directory and resolves the given path against this resource. Even if "other" begins with a `/`, the returned resource should be relative to this resource.
| |
| resolveSibling | back to summary |
|---|---|
| public Resource resolveSibling(String other) Implements liquibase. Doc from liquibase. Resolves the given path against this resource's parent path. This is useful where a file name needs to be replaced with another file name. For example, suppose that the name separator is "/" and a path represents "dir1/dir2/foo", then invoking this method with the Path "bar" will result in the Path "dir1/dir2/bar". If other is an empty path then this method returns this path's parent. Even if "other" begins with a `/`, the returned resource should be relative to this resource.
| |