public void processStorageFormat(String name) throws SemanticException {
    StorageFormatDescriptor descriptor = getDescriptor(name, "STORED AS clause");
    inputFormat = ensureClassExists(descriptor.getInputFormat());
    outputFormat = ensureClassExists(descriptor.getOutputFormat());
    if (serde == null) {
      serde = ensureClassExists(descriptor.getSerde());
    }
    if (serde == null) {
      // RCFile supports a configurable SerDe
      if (name.equalsIgnoreCase(IOConstants.RCFILE)) {
        serde = ensureClassExists(HiveConf.getVar(conf, HiveConf.ConfVars.HIVE_DEFAULT_RCFILE_SERDE));
      } else {
        serde = ensureClassExists(HiveConf.getVar(conf, HiveConf.ConfVars.HIVE_DEFAULT_SERDE));
      }
    }
  }
Returns true if the passed token was a storage format token
and thus was processed accordingly.
ql/src/java/org/apache/hadoop/hive/ql/parse/StorageFormat.java