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 FileAttributesgetAttributes(LocalSourceFile local) private booleanisDirectory(String remote) private booleanmakeDirIfNotExists(String remote) private StringprepareFile(LocalSourceFile local, String remote, long byteOffset) private voidsetAttributes(LocalSourceFile local, String remotePath) private voidupload(TransferListener listener, long byteOffset) private voidupload(TransferListener listener, LocalSourceFile local, String remote, long byteOffset) private StringuploadDir(TransferListener listener, LocalSourceFile local, String remote) private StringuploadFile(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
-