com.github.moaxcp.x11client.protocol.xproto.ClientMessageData8 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 ClientMessageData8 implements ClientMessageDataUnion {
List data8;
byte format = 8;
public ClientMessageData8(@NonNull List data8) {
if(data8.size() != 20) {
throw new IllegalArgumentException("data8 must have length of 20. Got: \"" + data8.size() + "\"");
}
this.data8 = data8;
}
@Override
public int getSize() {
return 20;
}
public void write(X11Output out) throws IOException {
out.writeCard8(data8);
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy