be.fgov.ehealth.etee.crypto.utils
Interface DataPipe

All Superinterfaces:
java.io.Closeable
All Known Implementing Classes:
DataPipeInFile, DataPipeInMemory

public interface DataPipe
extends java.io.Closeable

Pipe to push incoming data into while processing cryptographic operations.
Data can be read from it afterwards.
Whether or not this pipe itself supports streaming between input and outcome depends on implementation and use.


Method Summary
 java.io.InputStream getFrom()
          Reads data from the pipe.
 java.io.OutputStream getTo()
          Adds data to the pipe.
 
Methods inherited from interface java.io.Closeable
close
 

Method Detail

getFrom

java.io.InputStream getFrom()
Reads data from the pipe.

Returns:
the stream to read from the pipe

getTo

java.io.OutputStream getTo()
Adds data to the pipe.

Returns:
the stream to write to the pipe


Copyright © 2018 eHealth. All Rights Reserved.