public static final void setArguments(final IoBuffer bb, final Object... args) {
        boolean wasFirst = true;
        for (final Object o : args) {
            if (wasFirst) {
                wasFirst = false;
            }
            else {
                bb.put(MetaEncodeCommand.SPACE);
            }
            if (o instanceof byte[]) {
                bb.put((byte[]) o);
            }
            else if (o instanceof String) {
                bb.put(getBytes((String) o));
            }
            else {
                bb.put(getBytes(String.valueOf(o)));
            }
        }
        bb.put(MetaEncodeCommand.CRLF);
    }
Utilities for byte process

@author dennis
metamorphosis-commons/src/main/java/com/taobao/metamorphosis/network/ByteUtils.java