package org.briarproject.api.transport; import java.io.OutputStream; /** Encrypts and authenticates data to be sent over a connection. */ public interface ConnectionWriter { /** * Returns an output stream to which unencrypted, unauthenticated data can * be written. */ OutputStream getOutputStream(); /** Returns the maximum number of bytes that can be written. */ long getRemainingCapacity(); }