Top Description Fields Constructors Methods
org.apache.tools.mail

pack-priv Class MailPrintStream

Located in compilation unit of org.apache.tools.mail.MailMessage.

extends PrintStream
Class Inheritance

This PrintStream subclass makes sure that . becomes .. per RFC 821. It also ensures that new lines are always \r\n.

Field Summary

Modifier and TypeField and Description
private int

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
pack-priv void
pack-priv void
rawWrite(int b)

public void
write(int
The byte to be written
b
)

Overrides java.io.PrintStream.write.

Writes the specified byte to this stream.
public void
write(byte[]
A byte array
buf
,
int
Offset from which to start taking bytes
off
,
int
Number of bytes to write
len
)

Overrides java.io.PrintStream.write.

Writes len bytes from the specified byte array starting at offset off to this stream.
Inherited from java.io.PrintStream:
appendappendappendcharsetcheckErrorclearErrorcloseflushformatformatprintprintprintprintprintprintprintprintprintprintfprintfprintlnprintlnprintlnprintlnprintlnprintlnprintlnprintlnprintlnprintlnsetErrorwritewriteBytes

Field Detail

lastCharback to summary
private int lastChar

Constructor Detail

MailPrintStreamback to summary
public MailPrintStream(OutputStream out)

Method Detail

rawPrintback to summary
pack-priv void rawPrint(String s)
rawWriteback to summary
pack-priv void rawWrite(int b)
writeback to summary
public void write(int b)

Overrides java.io.PrintStream.write.

Doc from java.io.PrintStream.write.

Writes the specified byte to this stream. If the byte is a newline and automatic flushing is enabled then the flush method will be invoked on the underlying output stream.

Note that the byte is written as given; to write a character that will be translated according to the default charset, use the print(char) or println(char) methods.

Parameters
b:int

The byte to be written

Annotations
@Override
writeback to summary
public void write(byte[] buf, int off, int len)

Overrides java.io.PrintStream.write.

Doc from java.io.PrintStream.write.

Writes len bytes from the specified byte array starting at offset off to this stream. If automatic flushing is enabled then the flush method will be invoked on the underlying output stream.

Note that the bytes will be written as given; to write characters that will be translated according to the default charset, use the print(char) or println(char) methods.

Parameters
buf:byte[]

A byte array

off:int

Offset from which to start taking bytes

len:int

Number of bytes to write

Annotations
@Override