34 lines
676 B
Java
Raw Normal View History

package org.whispersystems.textsecure.api.messages;
import java.io.InputStream;
public class TextSecureAttachmentStream extends TextSecureAttachment {
private final InputStream inputStream;
private final long length;
public TextSecureAttachmentStream(InputStream inputStream, String contentType, long length) {
super(contentType);
this.inputStream = inputStream;
this.length = length;
}
@Override
public boolean isStream() {
2014-11-04 15:01:32 -08:00
return true;
}
@Override
public boolean isPointer() {
2014-11-04 15:01:32 -08:00
return false;
}
public InputStream getInputStream() {
return inputStream;
}
public long getLength() {
return length;
}
}