[core] Attachments will use InputStream rather than ByteBuffer

This commit is contained in:
Torsten Grote
2018-11-13 15:07:16 -02:00
parent 8f4c3c4528
commit 753a25bc2a
2 changed files with 7 additions and 11 deletions

View File

@@ -1,17 +1,17 @@
package org.briarproject.briar.api.messaging;
import java.nio.ByteBuffer;
import java.io.InputStream;
public class Attachment {
private final ByteBuffer data;
private final InputStream stream;
public Attachment(ByteBuffer data) {
this.data = data;
public Attachment(InputStream stream) {
this.stream = stream;
}
public ByteBuffer getData() {
return data;
public InputStream getStream() {
return stream;
}
}