use of de.dytanic.cloudnetwrapper.network.packet.out.PacketOutSendScreenLine in project CloudNet by Dytanic.
the class ScreenLoader method run.
@Override
public void run() {
this.thread = Thread.currentThread();
String input;
BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(screenable.getInstance().getInputStream(), StandardCharsets.UTF_8));
try {
while ((input = bufferedReader.readLine()) != null) {
CloudNetWrapper.getInstance().getNetworkConnection().sendPacket(new PacketOutSendScreenLine(Arrays.asList(new ScreenInfo(screenable.getServiceId(), input))));
}
} catch (IOException e) {
}
}
Aggregations