mirror of
https://github.com/VibedByKaKi/alexandroid.git
synced 2026-11-15 10:27:17 +01:00
21 lines
769 B
Java
21 lines
769 B
Java
package org.java_websocket.framing;
|
|
|
|
import org.java_websocket.enums.Opcode;
|
|
import org.java_websocket.exceptions.InvalidDataException;
|
|
import org.java_websocket.util.Charsetfunctions;
|
|
|
|
/* compiled from: r8-map-id-b9432e0f623b4a4bff4ba50a8a24c4aafad2c1e11092747b9fb5e6a22af5a940 */
|
|
/* loaded from: classes11.dex */
|
|
public class TextFrame extends DataFrame {
|
|
public TextFrame() {
|
|
super(Opcode.TEXT);
|
|
}
|
|
|
|
@Override // org.java_websocket.framing.DataFrame, org.java_websocket.framing.FramedataImpl1
|
|
public void isValid() throws InvalidDataException {
|
|
super.isValid();
|
|
if (!Charsetfunctions.isValidUTF8(getPayloadData())) {
|
|
throw new InvalidDataException(1007, "Received text is no valid utf8 string!");
|
|
}
|
|
}
|
|
}
|