Top Fields Constructors Methods
org.bouncycastle.mime.encoding

public Class Base64OutputStream

extends FilterOutputStream
Class Inheritance
Imports
java.io.FilterOutputStream, .IOException, .OutputStream, org.bouncycastle.util.encoders.Base64Encoder

Field Summary

Modifier and TypeField and Description
private static final Base64Encoder
private final byte[]
private static final int
private int
private final byte[]
private static final int
Inherited from java.io.FilterOutputStream:
out

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
close()

Overrides java.io.FilterOutputStream.close.

Implements java.io.Closeable.close.

Closes this output stream and releases any system resources associated with the stream.
private void
encodeBlock(byte[] buf, int off)

public void
write(int
the byte.
b
)

Overrides java.io.FilterOutputStream.write.

Writes the specified byte to this output stream.
public void
write(byte[]
the data.
buf
,
int
the start offset in the data.
off
,
int
the number of bytes to write.
len
)

Overrides java.io.FilterOutputStream.write.

Writes len bytes from the specified byte array starting at offset off to this output stream.
public void
write(byte[]
the data to be written.
buf
)

Overrides java.io.FilterOutputStream.write.

Writes b.length bytes to this output stream.
Inherited from java.io.FilterOutputStream:
flush

Field Detail

ENCODERback to summary
private static final Base64Encoder ENCODER
inBufback to summary
private final byte[] inBuf
INBUF_SIZEback to summary
private static final int INBUF_SIZE
inPosback to summary
private int inPos
outBufback to summary
private final byte[] outBuf
OUTBUF_SIZEback to summary
private static final int OUTBUF_SIZE

Constructor Detail

Base64OutputStreamback to summary
public Base64OutputStream(OutputStream stream)

Method Detail

closeback to summary
public void close() throws IOException

Overrides java.io.FilterOutputStream.close.

Implements java.io.Closeable.close.

Doc from java.io.FilterOutputStream.close.

Closes this output stream and releases any system resources associated with the stream.

Exceptions
IOException:
if an I/O error occurs.
encodeBlockback to summary
private void encodeBlock(byte[] buf, int off) throws IOException
writeback to summary
public void write(int b) throws IOException

Overrides java.io.FilterOutputStream.write.

Doc from java.io.FilterOutputStream.write.

Writes the specified byte to this output stream.

The write method of FilterOutputStream calls the write method of its underlying output stream, that is, it performs out.write(b).

Implements the abstract write method of OutputStream.

Parameters
b:int

the byte.

Exceptions
IOException:
if an I/O error occurs.
writeback to summary
public void write(byte[] buf, int off, int len) throws IOException

Overrides java.io.FilterOutputStream.write.

Doc from java.io.FilterOutputStream.write.

Writes len bytes from the specified byte array starting at offset off to this output stream.

Parameters
buf:byte[]

the data.

off:int

the start offset in the data.

len:int

the number of bytes to write.

Exceptions
IOException:
if an I/O error occurs.
writeback to summary
public void write(byte[] buf) throws IOException

Overrides java.io.FilterOutputStream.write.

Doc from java.io.FilterOutputStream.write.

Writes b.length bytes to this output stream.

Parameters
buf:byte[]

the data to be written.

Exceptions
IOException:
if an I/O error occurs.