com.github.moaxcp.x11client.protocol.xproto.ClientMessageData16 Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of x11-client Show documentation
Show all versions of x11-client Show documentation
An x11 client implemented in java
package com.github.moaxcp.x11client.protocol.xproto;
import com.github.moaxcp.x11client.protocol.X11Output;
import lombok.NonNull;
import lombok.Value;
import java.io.IOException;
import java.util.List;
@Value
public class ClientMessageData16 implements ClientMessageDataUnion {
List data16;
byte format = 16;
public ClientMessageData16(@NonNull List data16) {
if(data16.size() != 10) {
throw new IllegalArgumentException("data16 must have length of 10. Got: \"" + data16.size() + "\"");
}
this.data16 = data16;
}
@Override
public int getSize() {
return 20;
}
public void write(X11Output out) throws IOException {
out.writeCard16(data16);
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy