public interface DataReceiverAdapter extends AbstractTransmissionAdapter
DataReceiver an its DataReceiverConnections.| Modifier and Type | Method and Description |
|---|---|
void |
closeOutputStream(TransmissionEvent e,
java.io.OutputStream out)
Called after the transmission is done.
|
java.io.OutputStream |
downloadStarted(TransmissionEvent e,
java.lang.String clientId)
Called before the transmission starts.
|
transmissionDone, transmissionFailed, transmissionProgressChanged, transmissionStartedjava.io.OutputStream downloadStarted(TransmissionEvent e, java.lang.String clientId)
e - the TransmissionEvent describing the DataReceiverConnection's stateclientId - the client id of the sender or null if no id is availableOutputStream to which the received data will be writtenvoid closeOutputStream(TransmissionEvent e, java.io.OutputStream out)
OutputStream which was
originally created in downloadStarted(TransmissionEvent, String),
or leave it open for further operations.e - the TransmissionEvent describing the DataReceiverConnection's stateout - the OutputStream in which the received data was written (created in downloadStarted(TransmissionEvent, String)