be.fgov.ehealth.etee.crypto.utils
Class DataPipeInFile

java.lang.Object
  extended by be.fgov.ehealth.etee.crypto.utils.DataPipeInFile
All Implemented Interfaces:
DataPipe, java.io.Closeable

public class DataPipeInFile
extends java.lang.Object
implements DataPipe

Data pushed into the pipe is written to file.
Data read from the pipe is read from that file.


Constructor Summary
DataPipeInFile(java.io.File file)
           
 
Method Summary
 void close()
           
 java.io.InputStream getFrom()
          Reads data from the pipe.
 java.io.OutputStream getTo()
          Adds data to the pipe.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DataPipeInFile

public DataPipeInFile(java.io.File file)
               throws java.io.FileNotFoundException
Parameters:
file - used to store incoming data to and read outgoing data from
Throws:
java.io.FileNotFoundException
Method Detail

getFrom

public java.io.InputStream getFrom()
Description copied from interface: DataPipe
Reads data from the pipe.

Specified by:
getFrom in interface DataPipe
Returns:
the from

getTo

public java.io.OutputStream getTo()
Description copied from interface: DataPipe
Adds data to the pipe.

Specified by:
getTo in interface DataPipe
Returns:
the to

close

public void close()
Specified by:
close in interface java.io.Closeable


Copyright © 2018 eHealth. All Rights Reserved.