class Instructions extends java.lang.Object
Represents a collection of SCP PUT instructions such as java.io.File, StreamContent, EnterDirectory or LeaveDirectory.
| Constructor and description |
|---|
Instructions
(boolean recursive1, java.lang.String base1, java.util.Collection all1) |
| Type | Name and description |
|---|---|
static Instructions |
forFile(java.io.File localPath, java.lang.String remoteBase)Create Instructions for a file or directory. |
static Instructions |
forFileWithFilter(java.io.File localPath, java.lang.String remoteBase, groovy.lang.Closure<java.lang.Boolean> filter)Create Instructions for filtered files. |
static Instructions |
forFiles(java.lang.Iterable<java.io.File> localFiles, java.lang.String remoteBase)Create Instructions for a collection of files or directories |
static Instructions |
forStreamContent(java.io.InputStream stream, java.lang.String path)Create Instructions for stream content. |
java.util.Iterator |
iterator() |
| Methods inherited from class | Name |
|---|---|
class java.lang.Object |
java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
Create Instructions for a file or directory.
localPath - a file or directoryremoteBase - base path of remoteCreate Instructions for filtered files.
localPath - a file or directoryremoteBase - base path of remotefilter - a closure called with a java.io.FileCreate Instructions for a collection of files or directories
localFiles - a collection of files or directoriesremoteBase - base path of remoteCreate Instructions for stream content.
localPath - a file or directoryremoteBase - base path of remoteGroovy Documentation