public synchronized PacketBuilder withShort(final short s)
    {
        checkBuilt();
        try
        {
            dataOutputStream.writeShort(s);
        }
        catch (final IOException e)
        {
            logger.error("Unable to add short: {} : {}", e.getClass(), e.getMessage());
        }
        return this;
    }
public synchronized PacketBuilder withShort ( final short s ) { checkBuilt ( ) ; try { dataOutputStream . writeShort ( s ) ; } catch ( final IOException e ) { logger . error ( "Unable to add short: {} : {}" , e . getClass ( ) , e . getMessage ( ) ) ; } return this ; }
Adds a short
@param s Short
@throws IllegalStateException see {@link #checkBuilt()}