Package com.tailf.ned

Interface SSHClient.SecureFileTransfer

Enclosing interface:
SSHClient

public static interface SSHClient.SecureFileTransfer
SSHCLient file transfer interface
Author:
jrendel
  • Method Summary

    Modifier and Type
    Method
    Description
    get(String file)
    Get a file from a remote peer.
    default void
    put(String buffer, String file)
    Put a file with default permissions on a remote peer.
    void
    put(String buffer, String file, int mode)
    Put a file on a remote peer.
  • Method Details

    • get

      String get(String file) throws IOException
      Get a file from a remote peer.
      Parameters:
      file - - File name including path
      Returns:
      A string with the file content
      Throws:
      IOException
    • put

      void put(String buffer, String file, int mode) throws IOException
      Put a file on a remote peer.
      Parameters:
      buffer - - The content to put in the remote file
      file - - The remote file name including path.
      mode - - File permissions
      Throws:
      IOException
    • put

      default void put(String buffer, String file) throws IOException
      Put a file with default permissions on a remote peer.
      Parameters:
      buffer - - The content to put in the remote file
      file - - The remote file name including path.
      Throws:
      IOException