public static PrimitiveParts parsePrimitiveParts(String typeInfoString) {
    TypeInfoParser parser = new TypeInfoParser(typeInfoString);
    return parser.parsePrimitiveParts();
  }
Make some of the TypeInfo parsing available as a utility.
serde/src/java/org/apache/hadoop/hive/serde2/typeinfo/TypeInfoUtils.java