Example usage for io.netty.buffer ByteBufOutputStream writeUTF

List of usage examples for io.netty.buffer ByteBufOutputStream writeUTF

Introduction

In this page you can find the example usage for io.netty.buffer ByteBufOutputStream writeUTF.

Prototype

@Override
    public void writeUTF(String s) throws IOException 

Source Link

Usage

From source file:net.mcsproject.daemon.network.packets.PacketServerStart.java

License:Open Source License

@Override
public void write(ByteBufOutputStream byteBuf) throws IOException {
    byteBuf.writeUTF(serverType);
}

From source file:net.mcsproject.daemon.network.packets.PacketServerStarted.java

License:Open Source License

@Override
public void write(ByteBufOutputStream byteBuf) throws IOException {
    byteBuf.writeUTF(this.serverType);
    byteBuf.writeInt(this.port);
}