Package io.undertow.util
Class FlexBase64.EncoderOutputStream
java.lang.Object
java.io.OutputStream
io.undertow.util.FlexBase64.EncoderOutputStream
- All Implemented Interfaces:
Closeable
,Flushable
,AutoCloseable
- Enclosing class:
- FlexBase64
An output stream which base64 encodes all passed data and writes it to the wrapped target output stream.
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.
-
Method Summary
Methods inherited from class java.io.OutputStream
nullOutputStream, write
-
Method Details
-
write
- Overrides:
write
in classOutputStream
- Throws:
IOException
-
write
- Specified by:
write
in classOutputStream
- Throws:
IOException
-
flush
- Specified by:
flush
in interfaceFlushable
- Overrides:
flush
in classOutputStream
- Throws:
IOException
-
complete
Completes the stream, writing out base64 padding characters if needed.- Throws:
IOException
- if the underlying stream throws one
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Overrides:
close
in classOutputStream
- Throws:
IOException
-