com.sshtools.daemon.scp
Class ScpServer

java.lang.Object
  extended by com.sshtools.daemon.platform.NativeProcessProvider
      extended by com.sshtools.daemon.scp.ScpServer
All Implemented Interfaces:
java.lang.Runnable

public class ScpServer
extends NativeProcessProvider
implements java.lang.Runnable

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

Constructor Summary
ScpServer()
          Creates a new ScpServer object.
 
Method Summary
 boolean allocatePseudoTerminal(java.lang.String term, int cols, int rows, int width, int height, java.lang.String modes)
           
 boolean createProcess(java.lang.String command, java.util.Map environment)
           
 java.lang.String getDefaultTerminalProvider()
           
 java.io.InputStream getInputStream()
           
 java.io.OutputStream getOutputStream()
           
 java.io.InputStream getStderrInputStream()
           
 void kill()
           
 void run()
           
 void start()
           
 boolean stillActive()
           
 boolean supportsPseudoTerminal(java.lang.String term)
           
 int waitForExitCode()
           
 
Methods inherited from class com.sshtools.daemon.platform.NativeProcessProvider
newInstance, setProvider
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ScpServer

public ScpServer()
Creates a new ScpServer object.

Method Detail

allocatePseudoTerminal

public boolean allocatePseudoTerminal(java.lang.String term,
                                      int cols,
                                      int rows,
                                      int width,
                                      int height,
                                      java.lang.String modes)
Specified by:
allocatePseudoTerminal in class NativeProcessProvider
Returns:

createProcess

public boolean createProcess(java.lang.String command,
                             java.util.Map environment)
                      throws java.io.IOException
Specified by:
createProcess in class NativeProcessProvider
Returns:
Throws:
java.io.IOException

getDefaultTerminalProvider

public java.lang.String getDefaultTerminalProvider()
Specified by:
getDefaultTerminalProvider in class NativeProcessProvider
Returns:

getInputStream

public java.io.InputStream getInputStream()
                                   throws java.io.IOException
Specified by:
getInputStream in class NativeProcessProvider
Returns:
Throws:
java.io.IOException

getStderrInputStream

public java.io.InputStream getStderrInputStream()
Specified by:
getStderrInputStream in class NativeProcessProvider
Returns:

getOutputStream

public java.io.OutputStream getOutputStream()
                                     throws java.io.IOException
Specified by:
getOutputStream in class NativeProcessProvider
Returns:
Throws:
java.io.IOException

kill

public void kill()
Specified by:
kill in class NativeProcessProvider

start

public void start()
           throws java.io.IOException
Specified by:
start in class NativeProcessProvider
Throws:
java.io.IOException

stillActive

public boolean stillActive()
Specified by:
stillActive in class NativeProcessProvider
Returns:

supportsPseudoTerminal

public boolean supportsPseudoTerminal(java.lang.String term)
Specified by:
supportsPseudoTerminal in class NativeProcessProvider
Returns:

waitForExitCode

public int waitForExitCode()
Specified by:
waitForExitCode in class NativeProcessProvider
Returns:

run

public void run()
Specified by:
run in interface java.lang.Runnable


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