MCPcopy Create free account
hub / github.com/amazon-ion/ion-java / toZString

Method toZString

src/main/java/com/amazon/ion/Timestamp.java:2099–2112  ·  view source on GitHub ↗

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)

()

Source from the content-addressed store, hash-verified

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 /**

Calls 2

printZMethod · 0.95
toStringMethod · 0.65