com.sshtools.daemon.scp

Class ScpServer

Implemented Interfaces:
Runnable

public class ScpServer
extends NativeProcessProvider
implements Runnable

Version:
$Revision: 1.8 $
Author:
$author$

Constructor Summary

ScpServer()
Creates a new ScpServer object.

Method Summary

boolean
allocatePseudoTerminal(String term, int cols, int rows, int width, int height, String modes)
boolean
createProcess(String command, Map environment)
String
getDefaultTerminalProvider()
InputStream
getInputStream()
OutputStream
getOutputStream()
InputStream
getStderrInputStream()
void
kill()
void
run()
void
start()
boolean
stillActive()
boolean
supportsPseudoTerminal(String term)
int
waitForExitCode()

Methods inherited from class com.sshtools.daemon.platform.NativeProcessProvider

allocatePseudoTerminal, createProcess, getDefaultTerminalProvider, getInputStream, getOutputStream, getStderrInputStream, kill, newInstance, setProvider, start, stillActive, supportsPseudoTerminal, waitForExitCode

Constructor Details

ScpServer

public ScpServer()
Creates a new ScpServer object.

Method Details

allocatePseudoTerminal

public boolean allocatePseudoTerminal(String term,
                                      int cols,
                                      int rows,
                                      int width,
                                      int height,
                                      String modes)
Overrides:
allocatePseudoTerminal in interface NativeProcessProvider

createProcess

public boolean createProcess(String command,
                             Map environment)
            throws IOException
Overrides:
createProcess in interface NativeProcessProvider

getDefaultTerminalProvider

public String getDefaultTerminalProvider()
Overrides:
getDefaultTerminalProvider in interface NativeProcessProvider

getInputStream

public InputStream getInputStream()
            throws IOException
Overrides:
getInputStream in interface NativeProcessProvider

getOutputStream

public OutputStream getOutputStream()
            throws IOException
Overrides:
getOutputStream in interface NativeProcessProvider

getStderrInputStream

public InputStream getStderrInputStream()
Overrides:
getStderrInputStream in interface NativeProcessProvider

kill

public void kill()
Overrides:
kill in interface NativeProcessProvider

run

public void run()

start

public void start()
            throws IOException
Overrides:
start in interface NativeProcessProvider

stillActive

public boolean stillActive()
Overrides:
stillActive in interface NativeProcessProvider

supportsPseudoTerminal

public boolean supportsPseudoTerminal(String term)
Overrides:
supportsPseudoTerminal in interface NativeProcessProvider

waitForExitCode

public int waitForExitCode()
Overrides:
waitForExitCode in interface NativeProcessProvider

Copyright © 2002-2003 Lee David Painter & Contributors. All Rights Reserved.