public final void writeShort(final int v) {
        ab[aboffset++] = (byte) ((v >> 8) & 0xff);
        ab[aboffset++] = (byte) (v & 0xff);
    }
fast data-writing to a byte-array

@author ab
main/src/main/java/cgeo/geocaching/brouter/util/ByteDataWriter.java