org.mozilla.jss.util
public class Base64OutputStream extends FilterOutputStream
Constructor Summary | |
---|---|
Base64OutputStream(PrintStream out)
Create a stream that does not insert line breaks. | |
Base64OutputStream(PrintStream out, int quadsPerLine) |
Method Summary | |
---|---|
void | close()
This flushes the stream and closes the next stream downstream. |
void | flush()
Calling this will put the ending padding on the base64 stream,
so don't call it until you have no data left. |
void | write(int oneByte) |
void | write(byte[] buffer) |
void | write(byte[] buffer, int offset, int count) |
Parameters: quadsPerLine Number of 4-character blocks to write before outputting a line break. For example, for 76-characters per line, pass in 76/4 = 19.