blic static&nbsp;<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;getEncoding(<a href="../../../jakarta/activation/DataSource.html" title="interface in jakarta.activation">DataSource</a>&nbsp;ds)</pre>
<div class="block">Get the Content-Transfer-Encoding that should be applied
 to the input stream of this DataSource, to make it mail-safe. <p>

 The algorithm used here is: <br>
 <ul>
 <li>
 If the DataSource imp