<h2>org.das2.util.Base64.Encoder</h2><p>This class implements an encoder for encoding byte data using
 the Base64 encoding scheme as specified in RFC 4648 and RFC 2045.

 <p> Instances of {@link Encoder} class are safe for use by
 multiple concurrent threads.

 <p> Unless otherwise noted, passing a {@code null} argument to
 a method of this class will cause a
 {@link java.lang.NullPointerException NullPointerException} to
 be thrown.</p>
<hr>
<a name="encode"></a>
<h2>encode</h2>
encode( byte[] src ) &rarr; byte[]

<p>Encodes all bytes from the specified byte array into a newly-allocated
 byte array using the {@link Base64} encoding scheme. The returned byte
 array is of the length of the resulting bytes.</p>

<h3>Parameters</h3>
src - the byte array to encode

<h3>Returns:</h3>
A newly-allocated byte array containing the resulting
          encoded bytes.
<br><br>
<a href="https://github.com/autoplot/dev/search?q=encode&unscoped_q=encode">[search for examples]</a>
 <a href="https://github.com/autoplot/documentation/tree/master/javadoc/org/das2/util/Base64.Encoder.md">[view on GitHub]</a>
 <a href="http://www-pw.physics.uiowa.edu/~jbf/autoplot/javadoc2018/org/das2/util/Base64.Encoder.html#encode">[view on old javadoc]</a>
 <a href="https://saturn.physics.uiowa.edu/svn/das2/dasCore/community/autoplot2011/trunk/dasCoreUtil/src/org/das2/util/Base64.Encoder.java">[view source]</a>
<br>
<br>
encode( byte[] src, byte[] dst ) &rarr; int<br>
encode( <a href='https://docs.oracle.com/javase/8/docs/api/java/nio/ByteBuffer.html'>java.nio.ByteBuffer</a> buffer ) &rarr; <a href='https://docs.oracle.com/javase/8/docs/api/java/nio/ByteBuffer.html'>java.nio.ByteBuffer</a><br>
<hr>
<a name="encodeToString"></a>
<h2>encodeToString</h2>
encodeToString( byte[] src ) &rarr; <a href='https://docs.oracle.com/javase/8/docs/api/java/lang/String.html'>String</a>

<p>Encodes the specified byte array into a String using the {@link Base64}
 encoding scheme.

 <p> This method first encodes all input bytes into a base64 encoded
 byte array and then constructs a new String by using the encoded byte
 array and the {@link java.nio.charset.StandardCharsets#ISO_8859_1
 ISO-8859-1} charset.

 <p> In other words, an invocation of this method has exactly the same
 effect as invoking
  new String(encode(src), StandardCharsets.ISO_8859_1).</p>

<h3>Parameters</h3>
src - the byte array to encode

<h3>Returns:</h3>
A String containing the resulting Base64 encoded characters
<br><br>
<a href="https://github.com/autoplot/dev/search?q=encodeToString&unscoped_q=encodeToString">[search for examples]</a>
 <a href="https://github.com/autoplot/documentation/tree/master/javadoc/org/das2/util/Base64.Encoder.md">[view on GitHub]</a>
 <a href="http://www-pw.physics.uiowa.edu/~jbf/autoplot/javadoc2018/org/das2/util/Base64.Encoder.html#encodeToString">[view on old javadoc]</a>
 <a href="https://saturn.physics.uiowa.edu/svn/das2/dasCore/community/autoplot2011/trunk/dasCoreUtil/src/org/das2/util/Base64.Encoder.java">[view source]</a>
<br>
<br>
<hr>
<a name="withoutPadding"></a>
<h2>withoutPadding</h2>
withoutPadding(  ) &rarr; <a href='http://www-pw.physics.uiowa.edu/~jbf/autoplot/doc/org/das2/util/Base64/Encoder.html'>org.das2.util.Base64.Encoder</a>

<p>Returns an encoder instance that encodes equivalently to this one,
 but without adding any padding character at the end of the encoded
 byte data.

 <p> The encoding scheme of this encoder instance is unaffected by
 this invocation. The returned encoder instance should be used for
 non-padding encoding operation.</p>

<h3>Returns:</h3>
an equivalent encoder that encodes without adding any
         padding character at the end
<br><br>
<a href="https://github.com/autoplot/dev/search?q=withoutPadding&unscoped_q=withoutPadding">[search for examples]</a>
 <a href="https://github.com/autoplot/documentation/tree/master/javadoc/org/das2/util/Base64.Encoder.md">[view on GitHub]</a>
 <a href="http://www-pw.physics.uiowa.edu/~jbf/autoplot/javadoc2018/org/das2/util/Base64.Encoder.html#withoutPadding">[view on old javadoc]</a>
 <a href="https://saturn.physics.uiowa.edu/svn/das2/dasCore/community/autoplot2011/trunk/dasCoreUtil/src/org/das2/util/Base64.Encoder.java">[view source]</a>
<br>
<br>
<hr>
<a name="wrap"></a>
<h2>wrap</h2>
wrap( <a href='https://docs.oracle.com/javase/8/docs/api/java/io/OutputStream.html'>java.io.OutputStream</a> os ) &rarr; <a href='https://docs.oracle.com/javase/8/docs/api/java/io/OutputStream.html'>java.io.OutputStream</a>

<p>Wraps an output stream for encoding byte data using the {@link Base64}
 encoding scheme.

 <p> It is recommended to promptly close the returned output stream after
 use, during which it will flush all possible leftover bytes to the underlying
 output stream. Closing the returned output stream will close the underlying
 output stream.</p>

<h3>Parameters</h3>
os - the output stream.

<h3>Returns:</h3>
the output stream for encoding the byte data into the
          specified Base64 encoded format
<br><br>
<a href="https://github.com/autoplot/dev/search?q=wrap&unscoped_q=wrap">[search for examples]</a>
 <a href="https://github.com/autoplot/documentation/tree/master/javadoc/org/das2/util/Base64.Encoder.md">[view on GitHub]</a>
 <a href="http://www-pw.physics.uiowa.edu/~jbf/autoplot/javadoc2018/org/das2/util/Base64.Encoder.html#wrap">[view on old javadoc]</a>
 <a href="https://saturn.physics.uiowa.edu/svn/das2/dasCore/community/autoplot2011/trunk/dasCoreUtil/src/org/das2/util/Base64.Encoder.java">[view source]</a>
<br>
<br>