public class ScpHelper
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static int |
ERROR |
protected java.io.InputStream |
in |
protected static org.slf4j.Logger |
log |
static int |
OK |
protected java.io.OutputStream |
out |
protected FileSystemView |
root |
static int |
S_IRGRP |
static int |
S_IROTH |
static int |
S_IRUSR |
static int |
S_IWGRP |
static int |
S_IWOTH |
static int |
S_IWUSR |
static int |
S_IXGRP |
static int |
S_IXOTH |
static int |
S_IXUSR |
static int |
WARNING |
| Constructor and Description |
|---|
ScpHelper(java.io.InputStream in,
java.io.OutputStream out,
FileSystemView root) |
| Modifier and Type | Method and Description |
|---|---|
void |
ack() |
static java.util.EnumSet<SshFile.Permission> |
fromOctalPerms(java.lang.String str) |
int |
readAck(boolean canEof) |
java.lang.String |
readLine() |
java.lang.String |
readLine(boolean canEof) |
void |
receive(SshFile path,
boolean recursive,
boolean shouldBeDir,
boolean preserve) |
void |
receiveDir(java.lang.String header,
SshFile path,
long[] time,
boolean preserve) |
void |
receiveFile(java.lang.String header,
SshFile path,
long[] time,
boolean preserve) |
void |
send(java.util.List<java.lang.String> paths,
boolean recursive,
boolean preserve) |
void |
sendDir(SshFile path,
boolean preserve) |
void |
sendFile(SshFile path,
boolean preserve) |
static java.lang.String |
toOctalPerms(java.util.EnumSet<SshFile.Permission> perms) |
protected static final org.slf4j.Logger log
public static final int OK
public static final int WARNING
public static final int ERROR
public static final int S_IRUSR
public static final int S_IWUSR
public static final int S_IXUSR
public static final int S_IRGRP
public static final int S_IWGRP
public static final int S_IXGRP
public static final int S_IROTH
public static final int S_IWOTH
public static final int S_IXOTH
protected final FileSystemView root
protected final java.io.InputStream in
protected final java.io.OutputStream out
public ScpHelper(java.io.InputStream in,
java.io.OutputStream out,
FileSystemView root)
public void receive(SshFile path, boolean recursive, boolean shouldBeDir, boolean preserve) throws java.io.IOException
java.io.IOExceptionpublic void receiveDir(java.lang.String header,
SshFile path,
long[] time,
boolean preserve)
throws java.io.IOException
java.io.IOExceptionpublic void receiveFile(java.lang.String header,
SshFile path,
long[] time,
boolean preserve)
throws java.io.IOException
java.io.IOExceptionpublic java.lang.String readLine()
throws java.io.IOException
java.io.IOExceptionpublic java.lang.String readLine(boolean canEof)
throws java.io.IOException
java.io.IOExceptionpublic void send(java.util.List<java.lang.String> paths,
boolean recursive,
boolean preserve)
throws java.io.IOException
java.io.IOExceptionpublic void sendFile(SshFile path, boolean preserve) throws java.io.IOException
java.io.IOExceptionpublic void sendDir(SshFile path, boolean preserve) throws java.io.IOException
java.io.IOExceptionpublic static java.lang.String toOctalPerms(java.util.EnumSet<SshFile.Permission> perms)
public static java.util.EnumSet<SshFile.Permission> fromOctalPerms(java.lang.String str)
public void ack()
throws java.io.IOException
java.io.IOExceptionpublic int readAck(boolean canEof)
throws java.io.IOException
java.io.IOExceptionCopyright © 2008-2014 The Apache Software Foundation. All Rights Reserved.