base/java/lang/annotation/Annotation.html" title="class or interface in java.lang.annotation" class="external-link">Annotation</a>[]&nbsp;annotations,
 <a href="../MediaType.html" title="class in jakarta.ws.rs.core">MediaType</a>&nbsp;mediaType)</code></div>
<div class="col-last odd-row-color">
<div class="block">Originally, the method has been called before <code>writeTo</code> to ascertain the length in bytes of the serialized form
 of <code>t</code>.</div>
</div>
<div class="col-first even-row-color"><co