code: void decodeContentType(String rawLine) {
          int slash = rawLine.indexOf('/');
          if (slash == -1) {
  //            if (DEBUG) getLogger().debug("decoding ... no slash found");
              return;
          } else {
              primaryType = rawLine.substring(0, slash).trim();
          }
          int semicolon = rawLine.indexOf(';');
          if (semicolon == -1) {
  //            if (DEBUG) getLogger().debug("decoding ... no semicolon found");
              secondaryType = rawLine.substring(slash + 1).trim();
              return;
          }
          // have parameters
          secondaryType = rawLine.substring(slash + 1, semicolon).trim();
          Header h = new Header(rawLine);
          parameters = h.getParams();
      }
docs: Decode a content Type header line into types and parameters pairs