| Modifier and Type | Method and Description |
|---|---|
| public default void | closeRead(Session
The session, Path Session requesting the accessThe requested local file file, long PathThe expected transfer bytes count size, Set<PosixFilePermission> The requested file permissions permissions, InputStream The stream)InputStream to closeCalled when the stream obtained from |
| public default void | closeWrite(Session
The session, Path Session requesting the accessThe requested local file file, long PathThe expected transfer byte count size, Set<PosixFilePermission> The requested file permissions permissions, OutputStream The opened os)OutputStreamCalled when output stream obtained from |
| public ScpSourceStreamResolver | |
| public ScpTargetStreamResolver | |
| public default BasicFileAttributes | |
| public default Set | |
| public default DirectoryStream | Returns: TheDirectoryStream of children to send - Note: for each child the decision
whether to send it as a file or a directory will be reached by consulting the respective
sendAsRegularFile and
sendAsDirectory methodsThe client/server session, Path Session through which the transfer is being executedThe local folder path)PathInvoked when required to send all children of a local directory |
| public default Iterable | Returns: The matching relative paths of the children to sendThe client/server session, Path Session through which the transfer is being executedThe base directory - may be basedir, String null/empty to indicate CWDThe required pattern - ignored if pattern)null/empty - returns empty resultInvoked when required to send a pattern of files |
| public InputStream | openRead(Session
The session, Path Session requesting the accessThe requested local file file, long PathThe expected transfer bytes count size, Set<PosixFilePermission> The requested file permissions permissions, OpenOption... The options)OpenOptions - may be null/emptyCreate an input stream to read from a file |
| public OutputStream | openWrite(Session
The session, Path Session requesting the accessThe requested local file file, long PathThe expected transfer byte count size, Set<PosixFilePermission> The requested file permissions permissions, OpenOption... The options)OpenOptions - may be null/emptyCreate an output stream to write to a file |
| public default Path | Returns: The actual target file path for the incoming file/directoryThe client/server session, Path Session through which the transfer is being executedThe target local path localPath, String The target file name name, boolean Whether requested to preserve the permissions and timestamp preserve, Set<PosixFilePermission> The requested file permissions permissions, ScpTimestampCommandDetails The requested time)ScpTimestampCommandDetails - may be null if nothing to updateInvoked when receiving a new file to via a directory command |
| public default Path | Returns: The effective target path - default=same as inputThe client/server session, Path Session through which the transfer is being executedThe local target path, boolean Path of the requestWhether the request is recursive recursive, boolean Whether target path is expected to be a directory shouldBeDir, boolean Whether target path is expected to preserve attributes (permissions, times) preserve)Invoked when a request to receive something is processed |
| public default Path | Returns: The resolved absolute and normalized localPathThe client/server session, FileSystem Session through which the transfer is being executedThe local fileSystem, String FileSystem on which local file should resideThe command path using the local file separator commandPath)
|
| public default Path | Returns: The effective outgoing file path (default=same as input)The client/server session, Path Session through which the transfer is being executedThe original file/folder localPath, LinkOption... Path for sendingThe options)LinkOption-s to use for validationCalled when there is a candidate file/folder for sending |
| public default boolean | Returns: Whether to send the file as a directory - Note: iftrue then
getLocalFolderChildren(Session, Path) is consultedThe client/server session, Path Session through which the transfer is being executedThe local path, LinkOption... PathThe options)LinkOption-sInvoked on a local path in order to decide whether it should be sent as a file or as a directory |
| public default boolean | Returns: Whether to send the file as a regular one - Note: iffalse then the
sendAsDirectory(Session, Path, LinkOption. is consulted.The client/server session, Path Session through which the transfer is being executedThe local path, LinkOption... PathThe options)LinkOption-sInvoked on a local path in order to decide whether it should be sent as a file or as a directory |
| public static void |
| closeRead | back to summary |
|---|---|
| public default void closeRead(Session session, Path file, long size, Set<PosixFilePermission> permissions, InputStream stream) throws IOException Called when the stream obtained from
| |
| closeWrite | back to summary |
|---|---|
| public default void closeWrite(Session session, Path file, long size, Set<PosixFilePermission> permissions, OutputStream os) throws IOException Called when output stream obtained from
| |
| createScpSourceStreamResolver | back to summary |
|---|---|
| public ScpSourceStreamResolver createScpSourceStreamResolver(Session session, Path path) throws IOException | |
| createScpTargetStreamResolver | back to summary |
|---|---|
| public ScpTargetStreamResolver createScpTargetStreamResolver(Session session, Path path) throws IOException | |
| getLocalBasicFileAttributes | back to summary |
|---|---|
| public default BasicFileAttributes getLocalBasicFileAttributes(Session session, Path path, LinkOption... options) throws IOException | |
| getLocalFilePermissions | back to summary |
|---|---|
| public default Set | |
| getLocalFolderChildren | back to summary |
|---|---|
| public default DirectoryStream Invoked when required to send all children of a local directory
| |
| getMatchingFilesToSend | back to summary |
|---|---|
| public default Iterable Invoked when required to send a pattern of files
| |
| openRead | back to summary |
|---|---|
| public InputStream openRead(Session session, Path file, long size, Set<PosixFilePermission> permissions, OpenOption... options) throws IOException Create an input stream to read from a file
| |
| openWrite | back to summary |
|---|---|
| public OutputStream openWrite(Session session, Path file, long size, Set<PosixFilePermission> permissions, OpenOption... options) throws IOException Create an output stream to write to a file
| |
| resolveIncomingFilePath | back to summary |
|---|---|
| public default Path resolveIncomingFilePath(Session session, Path localPath, String name, boolean preserve, Set<PosixFilePermission> permissions, ScpTimestampCommandDetails time) throws IOException Invoked when receiving a new file to via a directory command
| |
| resolveIncomingReceiveLocation | back to summary |
|---|---|
| public default Path resolveIncomingReceiveLocation(Session session, Path path, boolean recursive, boolean shouldBeDir, boolean preserve) throws IOException Invoked when a request to receive something is processed
| |
| resolveLocalPath | back to summary |
|---|---|
public default Path resolveLocalPath(Session session, FileSystem fileSystem, String commandPath) throws IOException, InvalidPathException
| |
| resolveOutgoingFilePath | back to summary |
|---|---|
| public default Path resolveOutgoingFilePath(Session session, Path localPath, LinkOption... options) throws IOException Called when there is a candidate file/folder for sending
| |
| sendAsDirectory | back to summary |
|---|---|
| public default boolean sendAsDirectory(Session session, Path path, LinkOption... options) throws IOException Invoked on a local path in order to decide whether it should be sent as a file or as a directory
| |
| sendAsRegularFile | back to summary |
|---|---|
| public default boolean sendAsRegularFile(Session session, Path path, LinkOption... options) throws IOException Invoked on a local path in order to decide whether it should be sent as a file or as a directory
| |
| updateFileProperties | back to summary |
|---|---|
| public static void updateFileProperties(Path file, Set<PosixFilePermission> perms, ScpTimestampCommandDetails time) throws IOException | |