Package liquibase.resource
Class ResourceAccessor.NotFoundResource
java.lang.Object
liquibase.resource.AbstractResource
liquibase.resource.ResourceAccessor.NotFoundResource
- All Implemented Interfaces:
- Resource
- Enclosing interface:
- ResourceAccessor
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionbooleanexists()booleanReturn true if the resource can be written toOpens an input stream to read from this resource.openOutputStream(OpenOptions openOptions) Opens an output stream given the passedOpenOptions.Resolve the given path against this resource.resolveSibling(String other) Resolves the given path against this resource's parent path.Methods inherited from class liquibase.resource.AbstractResourceequals, getOriginalPath, getPath, getUri, hashCode, resolvePath, resolveSiblingPath, toStringMethods inherited from class java.lang.Objectclone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface liquibase.resource.ResourceopenOutputStream
- 
Constructor Details- 
NotFoundResource
 
- 
- 
Method Details- 
openInputStreamDescription copied from interface:ResourceOpens an input stream to read from this resource.- Throws:
- IOException- if there is an error reading from the resource, including if the resource does not exist or cannot be read.
 
- 
isWritablepublic boolean isWritable()Description copied from interface:ResourceReturn true if the resource can be written to- Specified by:
- isWritablein interface- Resource
- Overrides:
- isWritablein class- AbstractResource
 
- 
existspublic boolean exists()- Returns:
- true if the resource defined by this object currently exists.
 
- 
resolveDescription copied from interface:ResourceResolve 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.
- 
resolveSiblingDescription copied from interface:ResourceResolves 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.
- 
openOutputStreamDescription copied from interface:ResourceOpens an output stream given the passedOpenOptions. Cannot pass a null OpenOptions value- Specified by:
- openOutputStreamin interface- Resource
- Overrides:
- openOutputStreamin class- AbstractResource
- Throws:
- IOException
 
 
-