net.i2p.sam.client

## Class SAMStreamSink

- java.lang.Object
- - net.i2p.sam.client.SAMStreamSink

-     public class SAMStreamSink
      extends Object

  Swiss army knife tester. Saves our transient b64 destination to myKeyFile where SAMStreamSend can get it. Saves received data to a file (in sinkDir). Usage: SAMStreamSink [options] myKeyFile sinkDir See apps/sam/doc/README-test.txt for info on test setup. Receives data in one of 7 modes. Optionally uses SSL. Configurable SAM client version.

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `SAMStreamSink(I2PAppContext ctx, String samHost, String samPort, String destFile, String sinkDir)`

  - ### Method Summary

    All Methods Static Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `static void` | `main(String[] args)`
    `void` | `startup(String version, boolean isSSL, int mode, String user, String password, String sessionOpts)`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### SAMStreamSink

          public SAMStreamSink(I2PAppContext ctx,
                               String samHost,
                               String samPort,
                               String destFile,
                               String sinkDir)

  - ### Method Detail

    - #### main

          public static void main(String[] args)

    - #### startup

          public void startup(String version,
                              boolean isSSL,
                              int mode,
                              String user,
                              String password,
                              String sessionOpts)