30 lines
583 B
Java
30 lines
583 B
Java
package org.whispersystems.signalservice.api.util;
|
|
|
|
|
|
import java.io.InputStream;
|
|
|
|
public class StreamDetails {
|
|
|
|
private final InputStream stream;
|
|
private final String contentType;
|
|
private final long length;
|
|
|
|
public StreamDetails(InputStream stream, String contentType, long length) {
|
|
this.stream = stream;
|
|
this.contentType = contentType;
|
|
this.length = length;
|
|
}
|
|
|
|
public InputStream getStream() {
|
|
return stream;
|
|
}
|
|
|
|
public String getContentType() {
|
|
return contentType;
|
|
}
|
|
|
|
public long getLength() {
|
|
return length;
|
|
}
|
|
}
|