Overview | Package | Class | Tree | Deprecated | Index | Help
| Sun Adapter for Batch/FTP
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## com.stc.eways.batchext
Class SSHStreamFeeder

    java.lang.Object
      com.stc.eways.batchext.SSHStreamFeeder

    public class SSHStreamFeeder

extends java.lang.Object

This class is used to feed the SSH sub-process with necessary inputs. Some SSH client sub-processes could need extra inputs in an interactive way. This class only simulates the input action.

Version:
  cvs revision: $Revision: 1.5 $ Last Modified: $Date: 2008/02/25 16:56:24 $
Author:
  Harry Liu

Constructor Summary
`SSHStreamFeeder(java.io.OutputStream os)` Constructor.

Method Summary
`void` | `feed(java.lang.String food)` Feedin SSH subprocess with necessary data through STDIN.
`static void` | `main(java.lang.String[] args)` Used to do stand-alone testing.

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### SSHStreamFeeder

    public SSHStreamFeeder(java.io.OutputStream os)

  Constructor.

  Parameters:
    `os` - The output stream from an SSH sub-process.

Method Detail

### main

    public static void main(java.lang.String[] args)

  Used to do stand-alone testing.

  Parameters:
    `args` - Command-line parameters.
  Throws:
    `java.lang.Exception` - If some error occurs.

### feed

    public void feed(java.lang.String food)

  Feedin SSH subprocess with necessary data through STDIN.

Overview | Package | Class | Tree | Deprecated | Index | Help
| Sun Adapter for Batch/FTP
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD