+ /** The bandwidth-measuring input stream. */
+ private BandwidthCountingInputStream inputStream;
+
+ /**
+ * Creates a new DCC receiver.
+ *
+ * @param inetAddress
+ * The address to connect to
+ * @param port
+ * The port number to connect to
+ * @param filename
+ * The name of the file being downloaded
+ * @param size
+ * The size of the file being downloaded, or {@code -1} if the size is not
+ * known
+ * @param outputStream
+ * The output stream to write the file to
+ */
+ public DccReceiver(EventBus eventBus, InetAddress inetAddress, int port, String filename, long size, OutputStream outputStream) {
+ this(eventBus, inetAddress, port, filename, 0, size, outputStream);
+ }
+