Top Fields Constructors Methods
org.bouncycastle.mime

public Class CanonicalOutputStream

extends FilterOutputStream
Class Inheritance
Imports
java.io.FilterOutputStream, .IOException, .OutputStream, org.bouncycastle.mime.smime.SMimeParserContext

Field Summary

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

Constructor Summary

AccessConstructor and Description
public
CanonicalOutputStream(SMimeParserContext parserContext, Headers headers, OutputStream outputstream)

Method Summary

Modifier and TypeMethod and Description
public void
write(int
the byte.
i
)

Overrides java.io.FilterOutputStream.write.

Writes the specified byte 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.

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
Inherited from java.io.FilterOutputStream:
closeflush

Field Detail

is7Bitback to summary
private final boolean is7Bit
lastbback to summary
protected int lastb
newlineback to summary
protected static byte[] newline

Constructor Detail

CanonicalOutputStreamback to summary
public CanonicalOutputStream(SMimeParserContext parserContext, Headers headers, OutputStream outputstream)

Method Detail

writeback to summary
public void write(int i) 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
i:int

the byte.

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.
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.
writelnback to summary
public void writeln() throws IOException