Returns the string representation (in Ion format) of this Timestamp in UTC. @throws IonException if the text representation of the timestamp requires more than Timestamp#DEFAULT_MAXIMUM_DIGITS_TEXT. @see #toString() @see #printZ(Appendable)
()
| 2097 | * @see #printZ(Appendable) |
| 2098 | */ |
| 2099 | public String toZString() |
| 2100 | { |
| 2101 | StringBuilder buffer = new StringBuilder(32); |
| 2102 | try |
| 2103 | { |
| 2104 | printZ(buffer); |
| 2105 | } |
| 2106 | catch (IOException e) |
| 2107 | { |
| 2108 | throw new RuntimeException("Exception printing to StringBuilder", |
| 2109 | e); |
| 2110 | } |
| 2111 | return buffer.toString(); |
| 2112 | } |
| 2113 | |
| 2114 | |
| 2115 | /** |