java.io.Closeable
, java.io.Flushable
, java.lang.AutoCloseable
public static class FlexBase64.EncoderOutputStream
extends java.io.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 | 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) |
public void write(byte[] b, int off, int len) throws java.io.IOException
write
in class java.io.OutputStream
java.io.IOException
public void write(int b) throws java.io.IOException
write
in class java.io.OutputStream
java.io.IOException
public void flush() throws java.io.IOException
flush
in interface java.io.Flushable
flush
in class java.io.OutputStream
java.io.IOException
public void complete() throws java.io.IOException
java.io.IOException
- if the underlying stream throws onepublic void close() throws java.io.IOException
close
in interface java.lang.AutoCloseable
close
in interface java.io.Closeable
close
in class java.io.OutputStream
java.io.IOException
Copyright © 2018. All rights reserved.