Package net.schmizz.sshj.sftp
Class SFTPFileTransfer.Uploader
java.lang.Object
net.schmizz.sshj.sftp.SFTPFileTransfer.Uploader
- Enclosing class:
SFTPFileTransfer
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate FileAttributes
getAttributes
(LocalSourceFile local) private boolean
isDirectory
(String remote) private boolean
makeDirIfNotExists
(String remote) private String
prepareFile
(LocalSourceFile local, String remote, long byteOffset) private void
setAttributes
(LocalSourceFile local, String remotePath) private void
upload
(TransferListener listener, long byteOffset) private void
upload
(TransferListener listener, LocalSourceFile local, String remote, long byteOffset) private String
uploadDir
(TransferListener listener, LocalSourceFile local, String remote) private String
uploadFile
(StreamCopier.Listener listener, LocalSourceFile local, String remote, long byteOffset)
-
Field Details
-
source
-
remote
-
-
Constructor Details
-
Uploader
-
-
Method Details
-
upload
- Throws:
IOException
-
upload
private void upload(TransferListener listener, LocalSourceFile local, String remote, long byteOffset) throws IOException - Throws:
IOException
-
setAttributes
- Throws:
IOException
-
uploadDir
private String uploadDir(TransferListener listener, LocalSourceFile local, String remote) throws IOException - Throws:
IOException
-
uploadFile
private String uploadFile(StreamCopier.Listener listener, LocalSourceFile local, String remote, long byteOffset) throws IOException - Throws:
IOException
-
makeDirIfNotExists
- Throws:
IOException
-
isDirectory
- Throws:
IOException
-
prepareFile
private String prepareFile(LocalSourceFile local, String remote, long byteOffset) throws IOException - Throws:
IOException
-
getAttributes
- Throws:
IOException
-