APIdia Launch Partner
Top Fields Constructors Methods
sun.net.smtp

pack-priv Class SmtpPrintStream

Located in compilation unit of sun.net.smtp.SmtpClient.

extends PrintStream
Class Inheritance

Field Summary

Modifier and TypeField and Description
private int
private SmtpClient

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public void
close()

Overrides java.io.PrintStream.close.

Implements java.io.Closeable.close.

Closes the stream.

public void
write(int b)

Overrides java.io.PrintStream.write.

Writes the specified byte to this stream.

public void
write(byte[] b, int off, int 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:
appendappendappendcharsetcheckErrorclearErrorflushformatformatprintprintprintprintprintprintprintprintprintfprintfprintlnprintlnprintlnprintlnprintlnprintlnprintlnprintlnprintlnprintlnsetErrorwritewriteBytes

Field Detail

lastcback to summary
private int lastc
targetback to summary
private SmtpClient target

Constructor Detail

SmtpPrintStreamback to summary
pack-priv SmtpPrintStream(OutputStream fos, SmtpClient cl) throws UnsupportedEncodingException

Method Detail

closeback to summary
public void close()

Overrides java.io.PrintStream.close.

Implements java.io.Closeable.close.

Doc from java.io.PrintStream.close.

Closes the stream. This is done by flushing the stream and then closing the underlying output stream.

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.

writeback to summary
public void write(byte[] b, 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.