com.jfw.file
Class SaveStream

java.lang.Object
  extended by com.jfw.file.SaveStream

public final class SaveStream
extends java.lang.Object

Save data in a stream.


Constructor Summary
SaveStream()
           
 
Method Summary
static void setData(java.io.InputStream inputStream, java.io.OutputStream outputStream)
          Call setData(java.io.InputStream, java.io.OutputStream, boolean, com.jfw.util.Encryption) setting closeStreams to true and encryption to null.
static void setData(java.io.InputStream inputStream, java.io.OutputStream outputStream, boolean closeStreams)
          Call setData(java.io.InputStream, java.io.OutputStream, boolean, com.jfw.util.Encryption) setting encryption to null.
static void setData(java.io.InputStream inputStream, java.io.OutputStream outputStream, boolean closeStreams, Encryption encryption)
          Read all data form from a file input stream and write it in the output stream.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SaveStream

public SaveStream()
Method Detail

setData

public static void setData(java.io.InputStream inputStream,
                           java.io.OutputStream outputStream,
                           boolean closeStreams,
                           Encryption encryption)
                    throws JFWGenericException
Read all data form from a file input stream and write it in the output stream.

Parameters:
inputStream - the input stream.
outputStream - the output stream.
closeStreams - if true the streams are closed by this method.
encryption - if not null the data are encrypted in the output stream.
Throws:
JFWGenericException

setData

public static void setData(java.io.InputStream inputStream,
                           java.io.OutputStream outputStream,
                           boolean closeStreams)
                    throws JFWGenericException
Call setData(java.io.InputStream, java.io.OutputStream, boolean, com.jfw.util.Encryption) setting encryption to null.

Parameters:
inputStream - the input stream.
outputStream - the output stream.
closeStreams - if true the streams are closed by this method.
Throws:
JFWGenericException

setData

public static void setData(java.io.InputStream inputStream,
                           java.io.OutputStream outputStream)
                    throws JFWGenericException
Call setData(java.io.InputStream, java.io.OutputStream, boolean, com.jfw.util.Encryption) setting closeStreams to true and encryption to null.

Parameters:
inputStream - the input stream.
outputStream - the output stream.
Throws:
JFWGenericException