mirror of
https://github.com/vanitasvitae/Smack.git
synced 2025-09-09 09:09:38 +02:00
Create smack.util.stringencoder for Base64, Base32,…
Use Android's Base64 implementation when on Android, otherwise, when on Java7, use the existing one.
This commit is contained in:
parent
90c0064394
commit
5d4aa76d19
32 changed files with 491 additions and 231 deletions
|
@ -19,7 +19,7 @@ package org.jivesoftware.smackx.workgroup.settings;
|
|||
|
||||
import org.jivesoftware.smack.packet.IQ;
|
||||
import org.jivesoftware.smack.provider.IQProvider;
|
||||
import org.jivesoftware.smack.util.StringUtils;
|
||||
import org.jivesoftware.smack.util.stringencoder.Base64;
|
||||
import org.xmlpull.v1.XmlPullParser;
|
||||
|
||||
public class SoundSettings extends IQ {
|
||||
|
@ -36,11 +36,11 @@ public class SoundSettings extends IQ {
|
|||
}
|
||||
|
||||
public byte[] getIncomingSoundBytes() {
|
||||
return StringUtils.decodeBase64(incomingSound);
|
||||
return Base64.decode(incomingSound);
|
||||
}
|
||||
|
||||
public byte[] getOutgoingSoundBytes() {
|
||||
return StringUtils.decodeBase64(outgoingSound);
|
||||
return Base64.decode(outgoingSound);
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue