Code:
public void sendEscape() {
    ByteArrayDataOutput bado = new ByteArrayDataOutput();
    EscapePacket ep = new EscapePacket();
    ep.writeToOutput(bado);
    c2s.writePacket(Packets.ESCAPE, bado.getArray());
    c2s.out.flush();
}