ui/src/main/java/ucar/nc2/ui/gis/shapefile/Swap.java
static public char swapChar(byte[] b, int offset) {
    // 2 bytes
    int low = b[offset] & 0xff;
    int high = b[offset + 1] & 0xff;
    return (char) (high << 8 | low);
  }
static public char swapChar(byte[] b, int offset) {
    // 2 bytes
    int low = b[offset] & 0xff;
    int high = b[offset + 1] & 0xff;
    return (char) (high << 8 | low);
  }
static public char swapChar ( byte [ ] b , int offset ) { // 2 bytes int low = b [ offset ] & 0xff ; int high = b [ offset + 1 ] & 0xff ; return ( char ) ( high << 8 | low ) ; }
Returns the char resulting from swapping 2 bytes at a specified
offset in a byte array.

@param b      the byte array
@param offset the offset of the first byte
@return the char represented by the bytes
<code>b[offset+1], b[offset]</code>
Returns the char resulting from swapping 2 bytes at a specified offset in a byte array .