code: public void setMajor(int major)
      {
          if (major < 0 || 0xFFFF < major)
          {
              throw new IllegalArgumentException("'major' is out of the valid range: " + major);
          }
  
          mMajor = major;
  
          byte[] data = getData();
          data[MAJOR_INDEX    ] = (byte)((major >> 8) & 0xFF);
          data[MAJOR_INDEX + 1] = (byte)((major     ) & 0xFF);
      }
docs: Set the major number.
  
  @param major
  The major number. The value should be in the range from 0 to 65535.
  
  @throws IllegalArgumentException
  The given value is out of the valid range.