Base64 encode data: Difference between revisions
Content added Content deleted
Line 1,185: | Line 1,185: | ||
The usage is very simple, supply a <code>byte</code> array, and it will return, either an encoded <code>byte</code> array, or |
The usage is very simple, supply a <code>byte</code> array, and it will return, either an encoded <code>byte</code> array, or |
||
an ISO 8859-1 encoded <code>String</code>. |
an ISO 8859-1 encoded <code>String</code>. |
||
</p> |
|||
<p> |
|||
The class uses a static construct, so instead of instantiation via a constructor, you use one of the <kbd>static</kbd> methods.<br /> |
|||
In this case we'll use the <code>Base64.getEncoder</code> method to acquire our instance. |
|||
</p> |
</p> |
||
<syntaxhighlight lang="java"> |
<syntaxhighlight lang="java"> |