com.dynalivery.saffron.client
Class StreamDestinationOptions

java.lang.Object
  extended bycom.dynalivery.saffron.client.DestinationOptions
      extended bycom.dynalivery.saffron.client.FileSystemDestinationOptions
          extended bycom.dynalivery.saffron.client.StreamDestinationOptions
All Implemented Interfaces:
java.io.Serializable

public class StreamDestinationOptions
extends FileSystemDestinationOptions

This class is used for obtaining the Output as an InputStream. This DetinationOptions can be used along with SaffronEmbeddedClient Only. It is the responsibility of the client to close the InputStream, once it is done with it for proper releasing of resources.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.dynalivery.saffron.client.FileSystemDestinationOptions
fullPathName, unzipOutput
 
Fields inherited from class com.dynalivery.saffron.client.DestinationOptions
destinationType
 
Constructor Summary
StreamDestinationOptions()
          Stream DestiationOptions Constructor.
 
Method Summary
 java.io.InputStream getOutputAsStream()
          getOutputAsStream returns the InputStream to the Output.
 java.lang.String toString()
          Creates display string for destination options.
 
Methods inherited from class com.dynalivery.saffron.client.FileSystemDestinationOptions
doNotUnzipOutput, getFullPathName, getLocalDestinationOptionsXML, getRemoteDestinationOptionsXML, setFullPathName
 
Methods inherited from class com.dynalivery.saffron.client.DestinationOptions
getDestinationType, setDestinationType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

StreamDestinationOptions

public StreamDestinationOptions()
Stream DestiationOptions Constructor.

Method Detail

getOutputAsStream

public java.io.InputStream getOutputAsStream()
getOutputAsStream returns the InputStream to the Output. It is the responsiblity of the client to close the InputStream after it is done reading it, for proper releasing of resources.

Returns:
java.io.InputStream : this method returns the java.io.InputStream to the Output.

toString

public java.lang.String toString()
Creates display string for destination options.

Overrides:
toString in class FileSystemDestinationOptions