private void addExtendedStorageData(DataOutputStream out, Table table)
      throws IOException, UnsupportedEncodingException {
    if (table.getStorageHandlerInfo() != null) {
      out.write(("StorageHandlerInfo").getBytes(StandardCharsets.UTF_8));
      out.write(Utilities.newLineCode);
      out.write(table.getStorageHandlerInfo().formatAsText().getBytes(StandardCharsets.UTF_8));
      out.write(Utilities.newLineCode);
    }
  }
Formats DESC TABLE results to text format.
ql/src/java/org/apache/hadoop/hive/ql/ddl/table/info/desc/formatter/TextDescTableFormatter.java