public class Base64OutputStream
extends java.io.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(java.io.OutputStream outputStream)
It builds a base64 encoding output stream writing the encoded data in the
given underlying stream.
|
Base64OutputStream(java.io.OutputStream outputStream,
int wrapAt)
It builds a base64 encoding output stream writing the encoded data in the
given underlying stream.
|
public Base64OutputStream(java.io.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(java.io.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 java.io.IOException
write
在类中 java.io.OutputStream
java.io.IOException
public void close() throws java.io.IOException
close
在接口中 java.io.Closeable
close
在接口中 java.lang.AutoCloseable
close
在类中 java.io.OutputStream
java.io.IOException
protected void commit() throws java.io.IOException
It commits 4 bytes to the underlying stream.
java.io.IOException
Copyright © 2016. All Rights Reserved.