You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

34 lines
956 B

package foundation.pEp.jniadapter;
public class Blob {
public byte[] data;
public String mime_type;
public String filename;
public Blob() {
mime_type = "application/octet-stream";
}
/** Human readable string representation of Blob.
* The data field is ASN.1 XER decoded for mime_types:
* "application/pEp.sync"
* "application/pEp.keyreset"
* @return String Blob as String
*/
public String toString() {
_Blob _b = new _Blob(this);
String ret = "";
ret += "mime_type: \"" + mime_type + "\"\n";
ret += "filename: \"" + filename + "\"\n";
ret += "data plain: \"" + AbstractEngine.toUTF16(data) + "\"\n";
ret += "data decoded: \"" + _b.dataToXER() + "\"\n";
return ret;
}
Blob(_Blob b) {
data = b.data;
mime_type = AbstractEngine.toUTF16(b.mime_type);
filename = AbstractEngine.toUTF16(b.filename);
}
}