public class ScpConnection extends Object implements Closeable
| Constructor and Description |
|---|
ScpConnection(ISessionFactory sessionFactory,
String path,
EScpMode scpMode,
ECopyMode copyMode) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
closeEntry() |
InputStream |
getCurrentInputStream() |
OutputStream |
getCurrentOuputStream() |
ScpEntry |
getNextEntry() |
void |
putNextEntry(ScpEntry entry) |
void |
putNextEntry(String name) |
void |
putNextEntry(String name,
long size) |
public ScpConnection(ISessionFactory sessionFactory, String path, EScpMode scpMode, ECopyMode copyMode) throws com.jcraft.jsch.JSchException, IOException
com.jcraft.jsch.JSchExceptionIOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionpublic void closeEntry()
throws IOException
IOException@Nullable public InputStream getCurrentInputStream()
@Nullable public OutputStream getCurrentOuputStream()
@Nullable public ScpEntry getNextEntry() throws IOException
IOExceptionpublic void putNextEntry(String name) throws IOException
IOExceptionpublic void putNextEntry(String name, long size) throws IOException
IOExceptionpublic void putNextEntry(ScpEntry entry) throws IOException
IOExceptionCopyright © 2020 Philip Helger. All rights reserved.