ev.getSourceController().stop();
ev.getSourceController().close();
}
}
};
DataSinkListener dataSinkListener = new DataSinkListener() {
public void dataSinkUpdate(DataSinkEvent ev) {
if (ev instanceof EndOfStreamEvent) {
synchronized (waitFileSync) {
fileDone = true;
waitFileSync.notifyAll();