|
Sun Adapter for Batch/FTP | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.stc.eways.batchext.SSHStreamFeeder
public class SSHStreamFeeder
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.
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 |
---|
public SSHStreamFeeder(java.io.OutputStream os)
os
- The output stream from an SSH sub-process.Method Detail |
---|
public static void main(java.lang.String[] args)
args
- Command-line parameters.
java.lang.Exception
- If some error occurs.public void feed(java.lang.String food)
|
Sun Adapter for Batch/FTP | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |