Exemple #1
0
 public static String printFieldToString(final FieldDescriptor field,
                                         final Object value) {
   try {
     final StringBuilder text = new StringBuilder();
     printField(field, value, text);
     return text.toString();
   } catch (IOException e) {
     throw new IllegalStateException(e);
   }
 }