SSHSCP
Cliente SCP utilizado com o SSH.
close
close() : void
Description
Closes the SCP current session.
Return
( void )
closed
closed() : boolean
Description
Checks if the SCP session is still open.
Return
( boolean )
True if it is open.
download
download(remotePath: string, destination: OutputStream) : SSHSCP
Description
Copies a server file to a local file.
Attributes
NAME | TYPE | DESCRIPTION |
---|---|---|
remotePath | string | File path in the server. |
destination | OutputStream | Local file of destination to store the remote content. |
Return
( SSHSCP )
The current SFTP client.
download(remotePath: string, destination: File) : SSHSCP
Description
Copies a server file to a local file.
Attributes
NAME | TYPE | DESCRIPTION |
---|---|---|
remotePath | string | File path in the server. |
destination | File | Local file of destination to store the remote content. |
Return
( SSHSCP )
The current SFTP client.
downloadBytes
downloadBytes(remotePath: string) : byte[]
Description
Obtain a byte array as content from a file server.
Attributes
NAME | TYPE | DESCRIPTION |
---|---|---|
remotePath | string | File path in the server. |
Return
( byte[] )
Byte array with the remote file content in the server.
downloadText
downloadText(remotePath: string) : string
Description
Obtain a text content of a server file.
Attributes
NAME | TYPE | DESCRIPTION |
---|---|---|
remotePath | string | File path in the server. |
Return
( string )
Text content of the remote file in the server.
downloadText(remotePath: string, charset: string) : string
Description
Obtain a text content of a server file.
Attributes
NAME | TYPE | DESCRIPTION |
---|---|---|
remotePath | string | File path in the server. |
charset | string | Encoding code of the characters. |
Return
( string )
Text content of the remote file in the server.
isClosed
isClosed() : boolean
Return
( boolean )
upload
upload(remotePath: string, source: InputStream) : SSHSCP
Description
Sends the file data to be saved in a server file.
Attributes
NAME | TYPE | DESCRIPTION |
---|---|---|
remotePath | string | File path in the server. |
source | InputStream | Local file as the source. |
Return
( SSHSCP )
The current SFTP client.
upload(remotePath: string, source: File) : SSHSCP
Description
Sends the file data to be saved in a server file.
Attributes
NAME | TYPE | DESCRIPTION |
---|---|---|
remotePath | string | File path in the server. |
source | File | Local file as the source. |
Return
( SSHSCP )
The current SFTP client.
uploadBytes
uploadBytes(remotePath: string, bytes: byte[]) : SSHSCP
Description
Sends a byte array to be saved in a server file.
Attributes
NAME | TYPE | DESCRIPTION |
---|---|---|
remotePath | string | File path in the server. |
bytes | byte[] | Array of bytes. |
Return
( SSHSCP )
The current SFTP client.
uploadText
uploadText(remotePath: string, text: string) : SSHSCP
Description
Sends a text content to be saved in a server file.
Attributes
NAME | TYPE | DESCRIPTION |
---|---|---|
remotePath | string | File path in the server. |
text | string | Text content. |
Return
( SSHSCP )
The current SFTP client.
uploadText(remotePath: string, text: string, charset: string) : SSHSCP
Description
Sends a text content to be saved in a server file.
Attributes
NAME | TYPE | DESCRIPTION |
---|---|---|
remotePath | string | File path in the server. |
text | string | Text content. |
charset | string | Encoding code of the characters. |
Return
( SSHSCP )
The current SFTP client.