import java.nio.ByteBuffer;
<BUG>public final class ToFileReceiverClosing implements Receiver, Closing, Closeable, AutoCloseable {
</BUG>
private final OutputStream out;
<BUG>private final Closing closing;
private final Failing failing;
public ToFileReceiverClosing(File file, Closing closing, Failing failing) throws IOException {

this.closing = closing;
this.failing = failing;</BUG>
out = new FileOutputStream(file);

import java.nio.ByteBuffer;
public final class ToFileReceiverClosing implements Connection, Disconnectable {
private final OutputStream out;
private final Connection wrappee;
private boolean closed = false;
public ToFileReceiverClosing(File file, Connection wrappee) throws IOException {
this.wrappee = wrappee;
out = new FileOutputStream(file);
