public static class FlexBase64.EncoderOutputStream extends OutputStream
Closing this stream will result in the correct padding sequence being written. However, as required by the OutputStream contract, the wrapped stream will also be closed. If this is not desired, the complete()
method should be used.
Modifier and Type | Method and Description |
---|---|
void | close() |
void | complete() Completes the stream, writing out base64 padding characters if needed. |
void | flush() |
void | write(byte[] b, int off, int len) |
void | write(int b) |
write
public void write(byte[] b, int off, int len) throws IOException
write
in class OutputStream
IOException
public void write(int b) throws IOException
write
in class OutputStream
IOException
public void flush() throws IOException
flush
in interface Flushable
flush
in class OutputStream
IOException
public void complete() throws IOException
IOException
- if the underlying stream throws onepublic void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in class OutputStream
IOException
Copyright © 2020 JBoss by Red Hat. All rights reserved.