| Modifier and Type | Field and Description |
|---|---|
| protected final Charset | |
| protected final Charset | |
| public static final int | DEFAULT_COPY_BUFFER_SIZE
Default size (in bytes) of send / receive buffer size |
| public static final int | |
| public static final int | |
| protected final FileSystem | |
| protected final InputStream | |
| protected final ScpTransferEventListener | |
| public static final int | MIN_COPY_BUFFER_SIZE
The minimum size for sending / receiving files |
| public static final int | |
| public static final int | |
| protected final ScpFileOpener | |
| protected final OutputStream | |
| public static final String | SCP_COMMAND_PREFIX
Command prefix used to identify SCP commands |
| private final Session |
| Access | Constructor and Description |
|---|---|
| public | ScpHelper(Session session, InputStream in, OutputStream out, FileSystem fileSystem, ScpFileOpener opener, ScpTransferEventListener eventListener)
|
| public | ScpHelper(Session session, InputStream in, Charset csIn, OutputStream out, Charset csOut, FileSystem fileSystem, ScpFileOpener opener, ScpTransferEventListener eventListener)
|
| Modifier and Type | Method and Description |
|---|---|
| public Session | |
| public ScpAckInfo | |
| public void | |
| public String | |
| public String | |
| public void | |
| protected void | receive(String
The receive command being attempted cmd, ScpReceiveLineHandler The handler)ScpReceiveLineHandler to invoke when a command has been readReads command line(s) and invokes the handler until EOF or and "E" command is received |
| public void | receiveDir(String header, Path local, ScpTimestampCommandDetails time, boolean preserve, int bufferSize)
|
| public void | receiveFile(String header, Path local, ScpTimestampCommandDetails time, boolean preserve, int bufferSize)
|
| public void | |
| protected ScpAckInfo | |
| public void | receiveStream(String header, ScpTargetStreamResolver resolver, ScpTimestampCommandDetails time, boolean preserve, int bufferSize)
|
| public Path | |
| public Path | Returns: The resolved absolute and normalized localPathThe command path using the local file separator commandPath)
|
| public void | |
| protected void | |
| protected ScpAckInfo | |
| public void | |
| protected void | |
| public void | |
| public void | |
| public void | |
| protected void | |
| public void | |
| protected void | |
| public String | |
| protected void | |
| protected void | |
| protected void | validateFileOperationAckReplyCode(String command, Session session, ScpTransferEventListener.
|
| protected void |
| csIn | back to summary |
|---|---|
| protected final Charset csIn | |
| csOut | back to summary |
|---|---|
| protected final Charset csOut | |
| DEFAULT_COPY_BUFFER_SIZE | back to summary |
|---|---|
| public static final int DEFAULT_COPY_BUFFER_SIZE Default size (in bytes) of send / receive buffer size | |
| DEFAULT_RECEIVE_BUFFER_SIZE | back to summary |
|---|---|
| public static final int DEFAULT_RECEIVE_BUFFER_SIZE | |
| DEFAULT_SEND_BUFFER_SIZE | back to summary |
|---|---|
| public static final int DEFAULT_SEND_BUFFER_SIZE | |
| fileSystem | back to summary |
|---|---|
| protected final FileSystem fileSystem | |
| in | back to summary |
|---|---|
| protected final InputStream in | |
| listener | back to summary |
|---|---|
| protected final ScpTransferEventListener listener | |
| MIN_COPY_BUFFER_SIZE | back to summary |
|---|---|
| public static final int MIN_COPY_BUFFER_SIZE The minimum size for sending / receiving files | |
| MIN_RECEIVE_BUFFER_SIZE | back to summary |
|---|---|
| public static final int MIN_RECEIVE_BUFFER_SIZE | |
| MIN_SEND_BUFFER_SIZE | back to summary |
|---|---|
| public static final int MIN_SEND_BUFFER_SIZE | |
| opener | back to summary |
|---|---|
| protected final ScpFileOpener opener | |
| out | back to summary |
|---|---|
| protected final OutputStream out | |
| SCP_COMMAND_PREFIX | back to summary |
|---|---|
| public static final String SCP_COMMAND_PREFIX Command prefix used to identify SCP commands | |
| sessionInstance | back to summary |
|---|---|
| private final Session sessionInstance | |
| ScpHelper | back to summary |
|---|---|
| public ScpHelper(Session session, InputStream in, OutputStream out, FileSystem fileSystem, ScpFileOpener opener, ScpTransferEventListener eventListener) | |
| ScpHelper | back to summary |
|---|---|
| public ScpHelper(Session session, InputStream in, Charset csIn, OutputStream out, Charset csOut, FileSystem fileSystem, ScpFileOpener opener, ScpTransferEventListener eventListener) | |
| getSession | back to summary |
|---|---|
| public Session getSession() Implements org.
| |
| readAck | back to summary |
|---|---|
| public ScpAckInfo readAck(boolean canEof) throws IOException | |
| readAndValidateOperationAck | back to summary |
|---|---|
| public void readAndValidateOperationAck(String cmd, Object location) throws IOException | |
| readLine | back to summary |
|---|---|
| public String readLine() throws IOException | |
| readLine | back to summary |
|---|---|
| public String readLine(boolean canEof) throws IOException | |
| receive | back to summary |
|---|---|
| public void receive(String cmd, Path local, boolean recursive, boolean shouldBeDir, boolean preserve, int bufferSize) throws IOException | |
| receive | back to summary |
|---|---|
| protected void receive(String cmd, ScpReceiveLineHandler handler) throws IOException Reads command line(s) and invokes the handler until EOF or and "E" command is received
| |
| receiveDir | back to summary |
|---|---|
| public void receiveDir(String header, Path local, ScpTimestampCommandDetails time, boolean preserve, int bufferSize) throws IOException | |
| receiveFile | back to summary |
|---|---|
| public void receiveFile(String header, Path local, ScpTimestampCommandDetails time, boolean preserve, int bufferSize) throws IOException | |
| receiveFileStream | back to summary |
|---|---|
| public void receiveFileStream(String command, OutputStream local, int bufferSize) throws IOException | |
| receiveNextCmd | back to summary |
|---|---|
| protected ScpAckInfo receiveNextCmd() throws IOException | |
| receiveStream | back to summary |
|---|---|
| public void receiveStream(String header, ScpTargetStreamResolver resolver, ScpTimestampCommandDetails time, boolean preserve, int bufferSize) throws IOException | |
| resolveLocalPath | back to summary |
|---|---|
| public Path resolveLocalPath(String basedir, String subpath) throws IOException | |
| resolveLocalPath | back to summary |
|---|---|
public Path resolveLocalPath(String commandPath) throws IOException, InvalidPathException
| |
| send | back to summary |
|---|---|
| public void send(Collection<String> paths, boolean recursive, boolean preserve, int bufferSize) throws IOException | |
| send | back to summary |
|---|---|
| protected void send(Path local, boolean recursive, boolean preserve, int bufferSize, LinkOption... options) throws IOException | |
| sendAcknowledgedCommand | back to summary |
|---|---|
| protected ScpAckInfo sendAcknowledgedCommand(String cmd) throws IOException | |
| sendDir | back to summary |
|---|---|
| public void sendDir(Path local, boolean preserve, int bufferSize) throws IOException | |
| sendError | back to summary |
|---|---|
| protected void sendError(String message) throws IOException | |
| sendFile | back to summary |
|---|---|
| public void sendFile(Path local, boolean preserve, int bufferSize) throws IOException | |
| sendOk | back to summary |
|---|---|
| public void sendOk() throws IOException | |
| sendPaths | back to summary |
|---|---|
| public void sendPaths(Collection<? extends Path> paths, boolean recursive, boolean preserve, int bufferSize) throws IOException | |
| sendResponseMessage | back to summary |
|---|---|
| protected void sendResponseMessage(int level, String message) throws IOException | |
| sendStream | back to summary |
|---|---|
| public void sendStream(ScpSourceStreamResolver resolver, boolean preserve, int bufferSize) throws IOException | |
| sendWarning | back to summary |
|---|---|
| protected void sendWarning(String message) throws IOException | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non- | |
| validateAckReplyCode | back to summary |
|---|---|
| protected void validateAckReplyCode(String command, Object location, ScpAckInfo ackInfo) throws IOException | |
| validateCommandStatusCode | back to summary |
|---|---|
| protected void validateCommandStatusCode(String command, Object location, ScpAckInfo ackInfo, boolean eofAllowed) throws IOException | |
| validateFileOperationAckReplyCode | back to summary |
|---|---|
| protected void validateFileOperationAckReplyCode(String command, Session session, ScpTransferEventListener. | |
| validateOperationReadyCode | back to summary |
|---|---|
| protected void validateOperationReadyCode(String command, Object location, ScpAckInfo ackInfo) throws IOException | |