public class Base64Encoder extends FilterOutputStream
Filter Stream used to encode binary data from output stream to a base64 stream. This is inspired from Apache Jakarta Commons Base64 encoder/decoder class.
Modifier and Type | Field and Description |
---|---|
boolean |
addCR |
out
Constructor and Description |
---|
Base64Encoder(OutputStream out) |
public Base64Encoder(OutputStream out)
public void write(byte[] b, int off, int len) throws IOException
write
in class FilterOutputStream
IOException
public void write(byte[] b) throws IOException
write
in class FilterOutputStream
IOException
public void write(int b) throws IOException
write
in class FilterOutputStream
IOException
public void flush() throws IOException
flush
in interface Flushable
flush
in class FilterOutputStream
IOException
protected void addCR() throws IOException
IOException
Copyright © 2016 Sensia Software LLC. All rights reserved.