public class Base64OutputStream extends OutputStream
A base64 decoding output stream.
It encodes in base64 everything passed to the stream, and it puts the encoded data into the underlying stream.
| 构造器和说明 |
|---|
Base64OutputStream(OutputStream outputStream)
It builds a base64 encoding output stream writing the encoded data in the
given underlying stream.
|
Base64OutputStream(OutputStream outputStream,
int wrapAt)
It builds a base64 encoding output stream writing the encoded data in the
given underlying stream.
|
public Base64OutputStream(OutputStream outputStream)
It builds a base64 encoding output stream writing the encoded data in the given underlying stream.
The encoded data is wrapped to a new line (with a CRLF sequence) every 76 bytes sent to the underlying stream.
outputStream - The underlying stream.public Base64OutputStream(OutputStream outputStream, int wrapAt)
It builds a base64 encoding output stream writing the encoded data in the given underlying stream.
The encoded data is wrapped to a new line (with a CRLF sequence) every wrapAt bytes sent to the underlying stream. If the wrapAt supplied value is less than 1 the encoded data will not be wrapped.
outputStream - The underlying stream.wrapAt - The max line length for encoded data. If less than 1 no
wrap is applied.public void write(int b)
throws IOException
write 在类中 OutputStreamIOExceptionpublic void close()
throws IOException
close 在接口中 Closeableclose 在接口中 AutoCloseableclose 在类中 OutputStreamIOExceptionprotected void commit()
throws IOException
It commits 4 bytes to the underlying stream.
IOExceptionCopyright © 2013 The Skfiy Open Association. All Rights Reserved.